telegram-api icon indicating copy to clipboard operation
telegram-api copied to clipboard

NullPointerException at org.telegram.tl.StreamingUtils.writeTLObject(StreamingUtils.java:192)

Open gth9001 opened this issue 11 years ago • 3 comments

With great effor I builded working (almost) api library, and it even sent me sms code (I used telegram-bot code). But after I write this sms code I got the following exception: Exception in thread "Scheduller#1613213400" java.lang.NullPointerException at org.telegram.tl.StreamingUtils.writeTLObject(StreamingUtils.java:192) at org.telegram.api.requests.TLRequestMessagesSendMessage.serializeBody(Unknown Source) at org.telegram.api.requests.TLRequestMessagesSendMessage.serializeBody(Unknown Source) at org.telegram.tl.TLObject.serialize(TLObject.java:46) at org.telegram.tl.StreamingUtils.writeTLObject(StreamingUtils.java:192) at org.telegram.tl.StreamingUtils.writeTLMethod(StreamingUtils.java:203) at org.telegram.api.requests.TLRequestInvokeWithLayer11.serializeBody(Unknown Source) at org.telegram.tl.TLObject.serialize(TLObject.java:46) at org.telegram.tl.TLObject.serialize(TLObject.java:34) at org.telegram.mtproto.schedule.Scheduller.actualPackages(Scheduller.java:388) at org.telegram.mtproto.schedule.Scheduller.doSchedule(Scheduller.java:406) at org.telegram.mtproto.MTProto$SchedullerThread.run(MTProto.java:704) at org.telegram.api.requests.TLRequestMessagesSendMessage.serializeBody(Unknown Source) I think it can't serialize auth data. What can I do with it? Anybody faced the same problem? Thanks for answers.

gth9001 avatar Feb 03 '15 04:02 gth9001

Problem solved :)

gth9001 avatar Feb 09 '15 03:02 gth9001

@gth9001 Hey , i'm facing this issue , can u tell how did you solve it?

danprat92 avatar Aug 06 '15 16:08 danprat92

@danprat92 Unfortunately I can't remember it now, it was a several months ago. But I can tell that finally I gave up on this library, there was too many problems

gth9001 avatar Aug 07 '15 02:08 gth9001