I'm trying to implement simple sending messages via telegram bot. Here is my code:
using System;
using Telegram.Bot;
using Telegram.Bot.Types;
namespace ConsoleApp2
{
class Program
{
public static string ApiKey { get; set; } = "MyApiKey";
static void Main(string[] args)
{
TelegramBotClient client = new TelegramBotClient(ApiKey);
client.SendTextMessageAsync(MyChatId, "Hello World");
}
}
}
But this code dosen't send any message. Any ideas?