Book
  • Introduction
  • Installation
  • Getting Updates
    • Polling
    • Webhook
  • Requests
    • Get Me
    • Send Text
  • Extras
    • Logo
Powered by GitBook
On this page

Was this helpful?

Export as PDF
  1. Requests

Get Me

PreviousWebhookNextSend Text

Last updated 4 years ago

Was this helpful?

Get your bot's user information

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
}

https://core.telegram.org/bots/api#getMe