setMyName¶
Returns: bool
- class litegram.methods.set_my_name.SetMyName(*, name: str | None = None, language_code: str | None = None, **extra_data: Any)[source]¶
Use this method to change the bot’s name. Returns
Trueon success.
Usage¶
As bot method¶
result: bool = await bot.set_my_name(...)
Method as object¶
Imports:
from litegram.methods.set_my_name import SetMyNamealias:
from litegram.methods import SetMyName
With specific bot¶
result: bool = await bot(SetMyName(...))
As reply into Webhook in handler¶
return SetMyName(...)