mirror of
https://github.com/wiz0u/WTelegramClient.git
synced 2026-04-07 07:23:59 +00:00
Improved examples documentation
This commit is contained in:
parent
37ce6524e9
commit
98a95376f3
5 changed files with 22 additions and 9 deletions
|
|
@ -43,6 +43,14 @@ namespace WTelegramClientTest
|
|||
}
|
||||
else
|
||||
{
|
||||
// Zero means the access hash for Durov's Channel was not collected yet.
|
||||
// So we need to obtain it through Client API calls whose results contains the access_hash field, such as:
|
||||
// - Messages_GetAllChats (see Program_GetAllChats.cs for an example on how to use it)
|
||||
// - Messages_GetDialogs (see Program_ListenUpdates.cs for an example on how to use it)
|
||||
// - Contacts_ResolveUsername (see below for an example on how to use it)
|
||||
// and many more API methods...
|
||||
// The access_hash fields can be found inside instance of User, Channel, Photo, Document, etc..
|
||||
// usually listed through their base class UserBase, ChatBase, PhotoBase, DocumentBase, etc...
|
||||
Console.WriteLine("Resolving channel @durov to get its ID, access hash and other infos...");
|
||||
var durovResolved = await client.Contacts_ResolveUsername("durov"); // @durov = Durov's Channel
|
||||
if (durovResolved.peer.ID != DurovID)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue