getMyName¶
Returns: BotName
- class litegram.methods.get_my_name.GetMyName(*, language_code: str | None = None, **extra_data: Any)[source]¶
Use this method to get the current bot name for the given user language. Returns
litegram.types.bot_name.BotNameon success.
Usage¶
As bot method¶
result: BotName = await bot.get_my_name(...)
Method as object¶
Imports:
from litegram.methods.get_my_name import GetMyNamealias:
from litegram.methods import GetMyName
With specific bot¶
result: BotName = await bot(GetMyName(...))