I'm new on telegram Bot programmer and want to write a simple console application to send a message on telegram.
After some research I developed this codes with no error but it doesn't works and does not send my message. When i traced my code i found that status on result object is "waiting for activation" , what;s this mean?
I registered my bot and have a API access Token and used it on this codes.
Please guide me :)
static void Main(string[] args)
{
Task<Message> result;
result= DoSomethingAsync();
Console.WriteLine();
}
static async Task<Message> DoSomethingAsync()
{
var Bot = new Telegram.Bot.Api("my API access Token");
return await Bot.SendTextMessage("@blablavla", "test message");
}