mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +00:00
Added new modules
This commit is contained in:
parent
e5c2dffdf1
commit
7caeeb667f
6 changed files with 199 additions and 0 deletions
51
docs/api/methods/approve_chat_join_request.rst
Normal file
51
docs/api/methods/approve_chat_join_request.rst
Normal file
|
|
@ -0,0 +1,51 @@
|
|||
######################
|
||||
approveChatJoinRequest
|
||||
######################
|
||||
|
||||
Returns: :obj:`bool`
|
||||
|
||||
.. automodule:: aiogram.methods.approve_chat_join_request
|
||||
:members:
|
||||
:member-order: bysource
|
||||
:undoc-members: True
|
||||
|
||||
|
||||
Usage
|
||||
=====
|
||||
|
||||
As bot method
|
||||
-------------
|
||||
|
||||
.. code-block::
|
||||
|
||||
result: bool = await bot.approve_chat_join_request(...)
|
||||
|
||||
|
||||
Method as object
|
||||
----------------
|
||||
|
||||
Imports:
|
||||
|
||||
- :code:`from aiogram.methods.approve_chat_join_request import ApproveChatJoinRequest`
|
||||
- alias: :code:`from aiogram.methods import ApproveChatJoinRequest`
|
||||
|
||||
In handlers with current bot
|
||||
----------------------------
|
||||
|
||||
.. code-block:: python
|
||||
|
||||
result: bool = await ApproveChatJoinRequest(...)
|
||||
|
||||
With specific bot
|
||||
~~~~~~~~~~~~~~~~~
|
||||
|
||||
.. code-block:: python
|
||||
|
||||
result: bool = await bot(ApproveChatJoinRequest(...))
|
||||
|
||||
As reply into Webhook in handler
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
.. code-block:: python
|
||||
|
||||
return ApproveChatJoinRequest(...)
|
||||
51
docs/api/methods/decline_chat_join_request.rst
Normal file
51
docs/api/methods/decline_chat_join_request.rst
Normal file
|
|
@ -0,0 +1,51 @@
|
|||
######################
|
||||
declineChatJoinRequest
|
||||
######################
|
||||
|
||||
Returns: :obj:`bool`
|
||||
|
||||
.. automodule:: aiogram.methods.decline_chat_join_request
|
||||
:members:
|
||||
:member-order: bysource
|
||||
:undoc-members: True
|
||||
|
||||
|
||||
Usage
|
||||
=====
|
||||
|
||||
As bot method
|
||||
-------------
|
||||
|
||||
.. code-block::
|
||||
|
||||
result: bool = await bot.decline_chat_join_request(...)
|
||||
|
||||
|
||||
Method as object
|
||||
----------------
|
||||
|
||||
Imports:
|
||||
|
||||
- :code:`from aiogram.methods.decline_chat_join_request import DeclineChatJoinRequest`
|
||||
- alias: :code:`from aiogram.methods import DeclineChatJoinRequest`
|
||||
|
||||
In handlers with current bot
|
||||
----------------------------
|
||||
|
||||
.. code-block:: python
|
||||
|
||||
result: bool = await DeclineChatJoinRequest(...)
|
||||
|
||||
With specific bot
|
||||
~~~~~~~~~~~~~~~~~
|
||||
|
||||
.. code-block:: python
|
||||
|
||||
result: bool = await bot(DeclineChatJoinRequest(...))
|
||||
|
||||
As reply into Webhook in handler
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
.. code-block:: python
|
||||
|
||||
return DeclineChatJoinRequest(...)
|
||||
9
docs/api/types/chat_join_request.rst
Normal file
9
docs/api/types/chat_join_request.rst
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
###############
|
||||
ChatJoinRequest
|
||||
###############
|
||||
|
||||
|
||||
.. automodule:: aiogram.types.chat_join_request
|
||||
:members:
|
||||
:member-order: bysource
|
||||
:undoc-members: True
|
||||
Loading…
Add table
Add a link
Reference in a new issue