2021-01-26 21:20:52 +02:00
|
|
|
###
|
|
|
|
|
Bot
|
|
|
|
|
###
|
|
|
|
|
|
|
|
|
|
Bot instance can be created from :code:`aiogram.Bot` (:code:`from aiogram import Bot`) and
|
|
|
|
|
you can't use methods without instance of bot with configured token.
|
|
|
|
|
|
|
|
|
|
This class has aliases for all methods and named in :code:`lower_camel_case`.
|
|
|
|
|
|
|
|
|
|
For example :code:`sendMessage` named :code:`send_message` and has the same specification with all class-based methods.
|
|
|
|
|
|
2023-01-07 23:03:42 +02:00
|
|
|
.. warning::
|
|
|
|
|
|
|
|
|
|
A full list of methods can be found in the appropriate section of the documentation
|
|
|
|
|
|
2021-01-26 21:20:52 +02:00
|
|
|
.. autoclass:: aiogram.client.bot.Bot
|
2023-01-07 23:03:42 +02:00
|
|
|
:members: __init__,token,id,context,me,download_file,download
|
2021-01-26 21:20:52 +02:00
|
|
|
:show-inheritance:
|
|
|
|
|
:member-order: bysource
|
|
|
|
|
:special-members: __init__
|
2021-09-07 00:32:43 +03:00
|
|
|
:undoc-members: True
|
2022-12-04 03:05:49 +02:00
|
|
|
:noindex:
|