getMe
Returns bot information.
Returns: On success, returns User.
Parameters
This method has no parameters — just call it with your bot token.
Example request
curl
curl -s "https://api.telegram.org/bot$TOKEN/getMe"
Python
import requests
TOKEN = "123456789:AAEexampleTokenReplaceWithYours"
resp = requests.get(f"https://api.telegram.org/bot{TOKEN}/getMe", timeout=30)
print(resp.json())
JavaScript
const TOKEN = "123456789:AAEexampleTokenReplaceWithYours";
const res = await fetch(`https://api.telegram.org/bot${TOKEN}/getMe`);
console.log(await res.json());
Step-by-step guide: Telegram Bot Token: How to Get It, Find It Again, Check It and Keep It Safe
Related methods
getMyCommandsReturns the current list of bot commands.setMyCommandsSets the list of bot commands.deleteMyCommandsDeletes bot commands.getMyNameReturns the bot's name.setMyNameSets the bot's name.getMyDescriptionReturns the bot's description.setMyDescriptionSets the bot's description.getMyShortDescriptionReturns the bot's short description.setMyShortDescriptionSets the bot's short description.setMyProfilePhotoSets the bot's profile photo.removeMyProfilePhotoRemoves the bot's profile photo.getUserProfilePhotosReturns user profile photos.