Closed mehdi1602 closed 7 years ago
I used as below
TLRequestMessagesGetHistory tlReq = new TLRequestMessagesGetHistory(); TLAbsInputPeer _peer = (TLAbsInputPeer) new TLInputPeerChat(); ((TLInputPeerChat) _peer).setChatId(update.getChannelId()); tlReq.setPeer(_peer); TLAbsMessages messagesEx = kernelComm.getApi().doRpcCall(tlReq);`
but all the time i get exceptions INVALID_CHANNEL_ID or INVALID_CHAT_ID
` org.telegram.api.engine.RpcException: CHAT_ID_INVALID`
could you please help me to know why I get this error?
If you want to get the history from a channel, you need to use inputpeerchannel, not inputpeerchat.
I used as below
but all the time i get exceptions INVALID_CHANNEL_ID or INVALID_CHAT_ID
could you please help me to know why I get this error?