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.

Source: https://core.telegram.org/bots/api#getme

model_computed_fields: ClassVar[dict[str, ComputedFieldInfo]] = {}#

A dictionary of computed field names and their corresponding ComputedFieldInfo objects.

model_post_init(_ModelMetaclass__context: Any) None#

We need to both initialize private attributes and call the user-defined model_post_init method.

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(...))