You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 5, 2021. It is now read-only.
Hello, I am successfully listing the channels and read their messages with the following code:
TLChannel chatFromDialogs = dialogs.Chats.OfType<TLChannel>().FirstOrDefault(c => c.Title == chatTitle);
var channel = chatFromDialogs;
var chatPeer = new TLInputPeerChannel()
{
ChannelId = channel.Id,
AccessHash = channel.AccessHash.Value
};
var msgs = (TLChannelMessages)(await client.GetHistoryAsync(chatPeer, offsetId: 0, limit: 5));
However, for a single users, the chats are not listed as TLChannel, but I can see the list of users at dialogs.Users. How to get then the messages from a user chat?
Thank you
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Hello, I am successfully listing the channels and read their messages with the following code:
However, for a single users, the chats are not listed as TLChannel, but I can see the list of users at dialogs.Users. How to get then the messages from a user chat?
Thank you
The text was updated successfully, but these errors were encountered: