Following call fails with casting exception in TLChatFull.deserializeBody
val request = new TLRequestMessagesGetFullChat
request.setChatId(1234567
val response = api.doRpcCall(request)
callstack is
java.lang.ClassCastException: org.telegram.api.chat.invite.TLChatInviteEmpty cannot be cast to org.telegram.api.chat.invite.TLChatInviteExported
at org.telegram.api.chat.TLChatFull.deserializeBody(TLChatFull.java:83)
at org.telegram.tl.TLContext.deserializeMessage(TLContext.java:118)
WARN: TelegramApi#1001: messages.getFullChat#3b831c66
at org.telegram.api.engine.TelegramApi$1.deserializeMessage(TelegramApi.java:114)
at org.telegram.tl.TLContext.deserializeMessage(TLContext.java:134)
at org.telegram.tl.StreamingUtils.readTLObject(StreamingUtils.java:320)
at org.telegram.api.messages.TLMessagesChatFull.deserializeBody(TLMessagesChatFull.java:105)
at org.telegram.tl.TLContext.deserializeMessage(TLContext.java:118)
at org.telegram.api.engine.TelegramApi$1.deserializeMessage(TelegramApi.java:114)
at org.telegram.tl.TLContext.deserializeMessage(TLContext.java:88)
at org.telegram.api.engine.TelegramApi$1.deserializeMessage(TelegramApi.java:114)
at org.telegram.tl.TLContext.deserializeMessage(TLContext.java:134)
at org.telegram.tl.StreamingUtils.readTLObject(StreamingUtils.java:320)
at org.telegram.api.functions.messages.TLRequestMessagesGetFullChat.deserializeResponse(TLRequestMessagesGetFullChat.java:37)
at org.telegram.api.functions.messages.TLRequestMessagesGetFullChat.deserializeResponse(TLRequestMessagesGetFullChat.java:16)
at org.telegram.tl.TLMethod.deserializeResponse(TLMethod.java:15)
at org.telegram.api.engine.TelegramApi$ProtoCallback.onRpcResult(TelegramApi.java:762)
at org.telegram.mtproto.MTProto.onMTProtoMessage(MTProto.java:395)
at org.telegram.mtproto.MTProto.onMTMessage(MTProto.java:258)
at org.telegram.mtproto.MTProto.access$1300(MTProto.java:45)
at org.telegram.mtproto.MTProto$ResponseProcessor.run(MTProto.java:766)
Following call fails with casting exception in
TLChatFull.deserializeBody
callstack is