mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +00:00
* Update pydantic, fix errors and warnings (all?) * Fixed typehints * Reformat code, removed unused imports * Fixed typing extensions version compatibility * Fixed coverage * Describe changes * Regen code
15 lines
439 B
Python
15 lines
439 B
Python
from __future__ import annotations
|
|
|
|
from ..types import User
|
|
from .base import TelegramMethod
|
|
|
|
|
|
class GetMe(TelegramMethod[User]):
|
|
"""
|
|
A simple method for testing your bot's authentication token. Requires no parameters. Returns basic information about the bot in form of a :class:`aiogram.types.user.User` object.
|
|
|
|
Source: https://core.telegram.org/bots/api#getme
|
|
"""
|
|
|
|
__returning__ = User
|
|
__api_method__ = "getMe"
|