getMe#
Returns: User
- class aiogram.methods.get_me.GetMe(**extra_data: Any)[source]#
A simple method for testing your bot’s authentication token. Requires no parameters. Returns basic information about the bot in form of a
aiogram.types.user.User
object.
Usage#
As bot method#
result: User = await bot.get_me(...)
Method as object#
Imports:
from aiogram.methods.get_me import GetMe
alias:
from aiogram.methods import GetMe
With specific bot#
result: User = await bot(GetMe(...))