I am using WTelegramClient library.
Here is how I send messages:
var client = new WTelegram.Client(Config);
await client.LoginUserIfNeeded();
var contacts = await client.Contacts_ImportContacts(new[]
{
new InputPhoneContact { phone = "+998901234567" }
});
if (contacts.imported.Length > 0)
await client.SendMessageAsync(contacts.users[contacts.imported[0].user_id], "Hello, world!");
How to send multiple files? or at least one file.
I need to send files from a list or from a folder. I will be glad for any help.
List<byte[]> file = new List<byte[]>();