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

Error using TLRequestGetHistory CHANNEL_INVALID #313

Closed
sergiohj opened this issue Nov 24, 2016 · 2 comments
Closed

Error using TLRequestGetHistory CHANNEL_INVALID #313

sergiohj opened this issue Nov 24, 2016 · 2 comments

Comments

@sergiohj
Copy link

Hi,

I'm trying to gather the channel history but I'm not sure if I'm doing something wrong or there is an issue. I'm using the request TLRequestGetHistory sending a TLInputChannel with an Id that I have gathered before using the method GetUserDialogsAsync. I use the property id in TLChannel to call to the TLRequestGetHistory but I'm always receiving the same error.

Could you help me with this issue and gather all the history chat of a channel?

Regards.

@pooyaco
Copy link

pooyaco commented Nov 27, 2016

TeleSharp.TL.Messages.TLRequestGetHistory request = new TeleSharp.TL.Messages.TLRequestGetHistory();
request .peer = new TeleSharp.TL.TLInputPeerChannel { access_hash = xxxxxxx, channel_id = xxxxx };
request .max_id = -1;
request .limit = -1;
var message = await client.SendRequestAsync<TeleSharp.TL.Messages.TLChannelMessages>(request );

see https://core.telegram.org/method/messages.getHistory

@sergiohj
Copy link
Author

Thanks, I'm able to gather the history chat.

Regards.

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

2 participants