sochix / TLSharp

Telegram client library implemented in C#
1k stars 380 forks source link

[QUESTION] How can I iterate through ALL dialogs of user and get titles? #886

Closed apepenkov closed 3 years ago

apepenkov commented 5 years ago

How can I iterate through all types of dialogs, that user have ( client.GetUserDialogsAsync() ) (chat/channel/user) and if (title == "my needed string" ) send a message to it?

Orlys commented 4 years ago
var dialogs = (await client.GetUserDialogsAsync()) as TLDialogs;