Send a simple text using chat id
SendText request = new SendText(123456789, "Hello, World!");
Response<TextMessage> response = await bot.HandleAsync(request);
Send a simple text using chat username
using Telegram.Bots.Requests.Usernames;
SendText request = new SendText("@yourgroup", "Hello, World!");
Response<TextMessage> response = await bot.HandleAsync(request);
Send a website URL with its preview disabled
SendText request = new SendText(123456789, "https://www.example.com")
{
DisableWebPagePreview = true
};
Response<TextMessage> response = await bot.HandleAsync(request);