https://core.telegram.org/bots/api#getMe
Response<MyBot> response = await bot.HandleAsync(new GetMe()); if (response.Ok) { MyBot myBot = response.Result; // ... } else { Failure failure = response.Failure; // Basically you did not setup the bot token correctly }
Last updated 4 years ago