Skip to content
This repository has been archived by the owner on Dec 5, 2021. It is now read-only.

Get messages of Private Channel #606

Open
hosseinGanjyar opened this issue Oct 15, 2017 · 2 comments
Open

Get messages of Private Channel #606

hosseinGanjyar opened this issue Oct 15, 2017 · 2 comments

Comments

@hosseinGanjyar
Copy link

I want get messages of private_channel by below code, but get this error: "CHANNEL_PRIVATE"

code:

var req = new TLRequestGetHistory
{
  add_offset = 0,
    limit = 100,
    peer = new TLInputPeerChannel
  {
    channel_id = channel.id,
      access_hash = (long)channel.access_hash
  }
};
TLChannelMessages res = await client.SendRequestAsync<TLChannelMessages>(req);
@munrocket
Copy link

munrocket commented Oct 16, 2017

@hosseinGanjyar
This happens when message reposted from private channel. Check ".left" field. See also #580

@InokentiyVas
Copy link

How get messages from CHANNEL_PRIVATE ?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants