mirror of
https://github.com/aiogram/aiogram.git
synced 2025-12-06 07:50:32 +00:00
821 B
821 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
result: User = await bot.get_me(...)
Method as object
Imports:
from aiogram.methods import GetMefrom aiogram.api.methods import GetMefrom aiogram.api.methods.get_me import GetMe
In handlers with current bot
result: User = await GetMe(...)
With specific bot
result: User = await bot(GetMe(...))