mirror of
https://github.com/aiogram/aiogram.git
synced 2025-12-12 02:03:04 +00:00
825 B
825 B
getMe
Description
A simple method for testing your bot's auth token. Requires no parameters. Returns basic information about the bot in form of a User object.
Response
Type: #!python3 User
Description: Returns basic information about the bot in form of a User object.
Usage
As bot method bot
result: User = await bot.get_me(...)
Method as object
Imports:
from aiogram.types import GetMefrom aiogram.api.types import GetMefrom aiogram.api.types.get_me import GetMe
With specific bot
result: User = await bot.emit(GetMe(...))
In handlers with current bot
result: User = await GetMe(...)