Added Examples/Program_GetAllChats

This commit is contained in:
Wizou 2021-10-11 18:29:24 +02:00
parent 609e8a6a2d
commit f296e6b36d
4 changed files with 63 additions and 3 deletions

View file

@ -17,7 +17,7 @@ namespace WTelegramClientTest
// go to Project Properties > Debug > Environment variables and add at least these: api_id, api_hash, phone_number
static async Task Main(string[] _)
{
Console.WriteLine("The program demonstrate how load/save/use collected access hash.");
Console.WriteLine("The program demonstrate how to load/save/use collected access hash.");
WTelegram.Helpers.Log = (l, s) => System.Diagnostics.Debug.WriteLine(s);
using var client = new WTelegram.Client(Environment.GetEnvironmentVariable);
client.CollectAccessHash = true;