mirror of
https://github.com/aiogram/aiogram.git
synced 2025-12-12 02:03:04 +00:00
Added full support of Bot API 6.4 (#1088)
* Remove warnings about pytest asyncio mode * Update Bot API to 6.4 * Bump version * Added changelog * Update translations
This commit is contained in:
parent
b93b75804c
commit
730485e43a
239 changed files with 2522 additions and 892 deletions
44
docs/api/methods/close_general_forum_topic.rst
Normal file
44
docs/api/methods/close_general_forum_topic.rst
Normal file
|
|
@ -0,0 +1,44 @@
|
|||
######################
|
||||
closeGeneralForumTopic
|
||||
######################
|
||||
|
||||
Returns: :obj:`bool`
|
||||
|
||||
.. automodule:: aiogram.methods.close_general_forum_topic
|
||||
:members:
|
||||
:member-order: bysource
|
||||
:undoc-members: True
|
||||
|
||||
|
||||
Usage
|
||||
=====
|
||||
|
||||
As bot method
|
||||
-------------
|
||||
|
||||
.. code-block::
|
||||
|
||||
result: bool = await bot.close_general_forum_topic(...)
|
||||
|
||||
|
||||
Method as object
|
||||
----------------
|
||||
|
||||
Imports:
|
||||
|
||||
- :code:`from aiogram.methods.close_general_forum_topic import CloseGeneralForumTopic`
|
||||
- alias: :code:`from aiogram.methods import CloseGeneralForumTopic`
|
||||
|
||||
With specific bot
|
||||
~~~~~~~~~~~~~~~~~
|
||||
|
||||
.. code-block:: python
|
||||
|
||||
result: bool = await bot(CloseGeneralForumTopic(...))
|
||||
|
||||
As reply into Webhook in handler
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
.. code-block:: python
|
||||
|
||||
return CloseGeneralForumTopic(...)
|
||||
44
docs/api/methods/edit_general_forum_topic.rst
Normal file
44
docs/api/methods/edit_general_forum_topic.rst
Normal file
|
|
@ -0,0 +1,44 @@
|
|||
#####################
|
||||
editGeneralForumTopic
|
||||
#####################
|
||||
|
||||
Returns: :obj:`bool`
|
||||
|
||||
.. automodule:: aiogram.methods.edit_general_forum_topic
|
||||
:members:
|
||||
:member-order: bysource
|
||||
:undoc-members: True
|
||||
|
||||
|
||||
Usage
|
||||
=====
|
||||
|
||||
As bot method
|
||||
-------------
|
||||
|
||||
.. code-block::
|
||||
|
||||
result: bool = await bot.edit_general_forum_topic(...)
|
||||
|
||||
|
||||
Method as object
|
||||
----------------
|
||||
|
||||
Imports:
|
||||
|
||||
- :code:`from aiogram.methods.edit_general_forum_topic import EditGeneralForumTopic`
|
||||
- alias: :code:`from aiogram.methods import EditGeneralForumTopic`
|
||||
|
||||
With specific bot
|
||||
~~~~~~~~~~~~~~~~~
|
||||
|
||||
.. code-block:: python
|
||||
|
||||
result: bool = await bot(EditGeneralForumTopic(...))
|
||||
|
||||
As reply into Webhook in handler
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
.. code-block:: python
|
||||
|
||||
return EditGeneralForumTopic(...)
|
||||
44
docs/api/methods/hide_general_forum_topic.rst
Normal file
44
docs/api/methods/hide_general_forum_topic.rst
Normal file
|
|
@ -0,0 +1,44 @@
|
|||
#####################
|
||||
hideGeneralForumTopic
|
||||
#####################
|
||||
|
||||
Returns: :obj:`bool`
|
||||
|
||||
.. automodule:: aiogram.methods.hide_general_forum_topic
|
||||
:members:
|
||||
:member-order: bysource
|
||||
:undoc-members: True
|
||||
|
||||
|
||||
Usage
|
||||
=====
|
||||
|
||||
As bot method
|
||||
-------------
|
||||
|
||||
.. code-block::
|
||||
|
||||
result: bool = await bot.hide_general_forum_topic(...)
|
||||
|
||||
|
||||
Method as object
|
||||
----------------
|
||||
|
||||
Imports:
|
||||
|
||||
- :code:`from aiogram.methods.hide_general_forum_topic import HideGeneralForumTopic`
|
||||
- alias: :code:`from aiogram.methods import HideGeneralForumTopic`
|
||||
|
||||
With specific bot
|
||||
~~~~~~~~~~~~~~~~~
|
||||
|
||||
.. code-block:: python
|
||||
|
||||
result: bool = await bot(HideGeneralForumTopic(...))
|
||||
|
||||
As reply into Webhook in handler
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
.. code-block:: python
|
||||
|
||||
return HideGeneralForumTopic(...)
|
||||
|
|
@ -17,6 +17,7 @@ Available methods
|
|||
ban_chat_sender_chat
|
||||
close
|
||||
close_forum_topic
|
||||
close_general_forum_topic
|
||||
copy_message
|
||||
create_chat_invite_link
|
||||
create_forum_topic
|
||||
|
|
@ -27,6 +28,7 @@ Available methods
|
|||
delete_my_commands
|
||||
edit_chat_invite_link
|
||||
edit_forum_topic
|
||||
edit_general_forum_topic
|
||||
edit_message_live_location
|
||||
export_chat_invite_link
|
||||
forward_message
|
||||
|
|
@ -41,11 +43,13 @@ Available methods
|
|||
get_my_commands
|
||||
get_my_default_administrator_rights
|
||||
get_user_profile_photos
|
||||
hide_general_forum_topic
|
||||
leave_chat
|
||||
log_out
|
||||
pin_chat_message
|
||||
promote_chat_member
|
||||
reopen_forum_topic
|
||||
reopen_general_forum_topic
|
||||
restrict_chat_member
|
||||
revoke_chat_invite_link
|
||||
send_animation
|
||||
|
|
@ -75,6 +79,7 @@ Available methods
|
|||
stop_message_live_location
|
||||
unban_chat_member
|
||||
unban_chat_sender_chat
|
||||
unhide_general_forum_topic
|
||||
unpin_all_chat_messages
|
||||
unpin_all_forum_topic_messages
|
||||
unpin_chat_message
|
||||
|
|
|
|||
44
docs/api/methods/reopen_general_forum_topic.rst
Normal file
44
docs/api/methods/reopen_general_forum_topic.rst
Normal file
|
|
@ -0,0 +1,44 @@
|
|||
#######################
|
||||
reopenGeneralForumTopic
|
||||
#######################
|
||||
|
||||
Returns: :obj:`bool`
|
||||
|
||||
.. automodule:: aiogram.methods.reopen_general_forum_topic
|
||||
:members:
|
||||
:member-order: bysource
|
||||
:undoc-members: True
|
||||
|
||||
|
||||
Usage
|
||||
=====
|
||||
|
||||
As bot method
|
||||
-------------
|
||||
|
||||
.. code-block::
|
||||
|
||||
result: bool = await bot.reopen_general_forum_topic(...)
|
||||
|
||||
|
||||
Method as object
|
||||
----------------
|
||||
|
||||
Imports:
|
||||
|
||||
- :code:`from aiogram.methods.reopen_general_forum_topic import ReopenGeneralForumTopic`
|
||||
- alias: :code:`from aiogram.methods import ReopenGeneralForumTopic`
|
||||
|
||||
With specific bot
|
||||
~~~~~~~~~~~~~~~~~
|
||||
|
||||
.. code-block:: python
|
||||
|
||||
result: bool = await bot(ReopenGeneralForumTopic(...))
|
||||
|
||||
As reply into Webhook in handler
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
.. code-block:: python
|
||||
|
||||
return ReopenGeneralForumTopic(...)
|
||||
44
docs/api/methods/unhide_general_forum_topic.rst
Normal file
44
docs/api/methods/unhide_general_forum_topic.rst
Normal file
|
|
@ -0,0 +1,44 @@
|
|||
#######################
|
||||
unhideGeneralForumTopic
|
||||
#######################
|
||||
|
||||
Returns: :obj:`bool`
|
||||
|
||||
.. automodule:: aiogram.methods.unhide_general_forum_topic
|
||||
:members:
|
||||
:member-order: bysource
|
||||
:undoc-members: True
|
||||
|
||||
|
||||
Usage
|
||||
=====
|
||||
|
||||
As bot method
|
||||
-------------
|
||||
|
||||
.. code-block::
|
||||
|
||||
result: bool = await bot.unhide_general_forum_topic(...)
|
||||
|
||||
|
||||
Method as object
|
||||
----------------
|
||||
|
||||
Imports:
|
||||
|
||||
- :code:`from aiogram.methods.unhide_general_forum_topic import UnhideGeneralForumTopic`
|
||||
- alias: :code:`from aiogram.methods import UnhideGeneralForumTopic`
|
||||
|
||||
With specific bot
|
||||
~~~~~~~~~~~~~~~~~
|
||||
|
||||
.. code-block:: python
|
||||
|
||||
result: bool = await bot(UnhideGeneralForumTopic(...))
|
||||
|
||||
As reply into Webhook in handler
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
.. code-block:: python
|
||||
|
||||
return UnhideGeneralForumTopic(...)
|
||||
Loading…
Add table
Add a link
Reference in a new issue