Added full support of Bot API 8.2

This commit is contained in:
JRoot Junior 2025-01-02 02:08:10 +02:00
parent 81550997f7
commit dc3851698c
No known key found for this signature in database
GPG key ID: 738964250D5FF6E2
39 changed files with 800 additions and 80 deletions

View file

@ -18,6 +18,8 @@ Stickers
get_available_gifts
get_custom_emoji_stickers
get_sticker_set
remove_chat_verification
remove_user_verification
replace_sticker_in_set
send_gift
send_sticker
@ -29,6 +31,8 @@ Stickers
set_sticker_set_thumbnail
set_sticker_set_title
upload_sticker_file
verify_chat
verify_user
Available methods
=================

View file

@ -0,0 +1,45 @@
######################
removeChatVerification
######################
Returns: :obj:`bool`
.. automodule:: aiogram.methods.remove_chat_verification
:members:
:member-order: bysource
:undoc-members: True
:exclude-members: model_config,model_fields
Usage
=====
As bot method
-------------
.. code-block::
result: bool = await bot.remove_chat_verification(...)
Method as object
----------------
Imports:
- :code:`from aiogram.methods.remove_chat_verification import RemoveChatVerification`
- alias: :code:`from aiogram.methods import RemoveChatVerification`
With specific bot
~~~~~~~~~~~~~~~~~
.. code-block:: python
result: bool = await bot(RemoveChatVerification(...))
As reply into Webhook in handler
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.. code-block:: python
return RemoveChatVerification(...)

View file

@ -0,0 +1,45 @@
######################
removeUserVerification
######################
Returns: :obj:`bool`
.. automodule:: aiogram.methods.remove_user_verification
:members:
:member-order: bysource
:undoc-members: True
:exclude-members: model_config,model_fields
Usage
=====
As bot method
-------------
.. code-block::
result: bool = await bot.remove_user_verification(...)
Method as object
----------------
Imports:
- :code:`from aiogram.methods.remove_user_verification import RemoveUserVerification`
- alias: :code:`from aiogram.methods import RemoveUserVerification`
With specific bot
~~~~~~~~~~~~~~~~~
.. code-block:: python
result: bool = await bot(RemoveUserVerification(...))
As reply into Webhook in handler
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.. code-block:: python
return RemoveUserVerification(...)

View file

@ -0,0 +1,45 @@
##########
verifyChat
##########
Returns: :obj:`bool`
.. automodule:: aiogram.methods.verify_chat
:members:
:member-order: bysource
:undoc-members: True
:exclude-members: model_config,model_fields
Usage
=====
As bot method
-------------
.. code-block::
result: bool = await bot.verify_chat(...)
Method as object
----------------
Imports:
- :code:`from aiogram.methods.verify_chat import VerifyChat`
- alias: :code:`from aiogram.methods import VerifyChat`
With specific bot
~~~~~~~~~~~~~~~~~
.. code-block:: python
result: bool = await bot(VerifyChat(...))
As reply into Webhook in handler
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.. code-block:: python
return VerifyChat(...)

View file

@ -0,0 +1,45 @@
##########
verifyUser
##########
Returns: :obj:`bool`
.. automodule:: aiogram.methods.verify_user
:members:
:member-order: bysource
:undoc-members: True
:exclude-members: model_config,model_fields
Usage
=====
As bot method
-------------
.. code-block::
result: bool = await bot.verify_user(...)
Method as object
----------------
Imports:
- :code:`from aiogram.methods.verify_user import VerifyUser`
- alias: :code:`from aiogram.methods import VerifyUser`
With specific bot
~~~~~~~~~~~~~~~~~
.. code-block:: python
result: bool = await bot(VerifyUser(...))
As reply into Webhook in handler
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.. code-block:: python
return VerifyUser(...)