コード例 #1
0
		public async Task ImportContact()
		{
			// User should be already authenticated!

			var store = new FileSessionStore();
			var client = new TelegramClient(store, "session");
			
			await client.Connect();

			Assert.IsTrue(client.IsUserAuthorized());

			var res = await client.ImportContact(NumberToSendMessage);

			Assert.IsNotNull(res);
		}