mirror of
https://github.com/Mayuri-Chan/pyrofork.git
synced 2026-01-07 07:24:51 +00:00
PyroFork: Cleanup
Signed-off-by: wulan17 <galihgustip@gmail.com>
This commit is contained in:
parent
97f0ecc7c9
commit
b2158f702a
5 changed files with 11 additions and 11 deletions
|
|
@ -35,12 +35,12 @@ class CloseGeneralTopic:
|
||||||
Unique identifier (int) or username (str) of the target chat.
|
Unique identifier (int) or username (str) of the target chat.
|
||||||
|
|
||||||
Returns:
|
Returns:
|
||||||
`bool`: On success, a Boolean is returned.
|
`bool`: On success, a True is returned.
|
||||||
|
|
||||||
Example:
|
Example:
|
||||||
.. code-block:: python
|
.. code-block:: python
|
||||||
|
|
||||||
await app.close_forum_topic(chat_id, topic_id)
|
await app.close_general_topic(chat_id)
|
||||||
"""
|
"""
|
||||||
await self.invoke(
|
await self.invoke(
|
||||||
raw.functions.channels.EditForumTopic(
|
raw.functions.channels.EditForumTopic(
|
||||||
|
|
|
||||||
|
|
@ -39,12 +39,12 @@ class EditGeneralTopic:
|
||||||
The general forum topic title.
|
The general forum topic title.
|
||||||
|
|
||||||
Returns:
|
Returns:
|
||||||
`bool`: On success, a Boolean is returned.
|
`bool`: On success, a True is returned.
|
||||||
|
|
||||||
Example:
|
Example:
|
||||||
.. code-block:: python
|
.. code-block:: python
|
||||||
|
|
||||||
await app.edit_forum_topic(chat_id,topic_id,"New Topic Title")
|
await app.edit_general_topic(chat_id,"New Topic Title")
|
||||||
"""
|
"""
|
||||||
await self.invoke(
|
await self.invoke(
|
||||||
raw.functions.channels.EditForumTopic(
|
raw.functions.channels.EditForumTopic(
|
||||||
|
|
|
||||||
|
|
@ -35,12 +35,12 @@ class HideGeneralTopic:
|
||||||
Unique identifier (int) or username (str) of the target chat.
|
Unique identifier (int) or username (str) of the target chat.
|
||||||
|
|
||||||
Returns:
|
Returns:
|
||||||
`bool`: On success, a Boolean is returned.
|
`bool`: On success, a True is returned.
|
||||||
|
|
||||||
Example:
|
Example:
|
||||||
.. code-block:: python
|
.. code-block:: python
|
||||||
|
|
||||||
await app.close_forum_topic(chat_id, topic_id)
|
await app.hide_general_topic(chat_id)
|
||||||
"""
|
"""
|
||||||
await self.invoke(
|
await self.invoke(
|
||||||
raw.functions.channels.EditForumTopic(
|
raw.functions.channels.EditForumTopic(
|
||||||
|
|
|
||||||
|
|
@ -26,7 +26,7 @@ class ReopenGeneralTopic:
|
||||||
self: "pyrogram.Client",
|
self: "pyrogram.Client",
|
||||||
chat_id: Union[int, str]
|
chat_id: Union[int, str]
|
||||||
) -> bool:
|
) -> bool:
|
||||||
"""Reopen a forum topic.
|
"""Reopen a general forum topic.
|
||||||
|
|
||||||
.. include:: /_includes/usable-by/users-bots.rst
|
.. include:: /_includes/usable-by/users-bots.rst
|
||||||
|
|
||||||
|
|
@ -35,12 +35,12 @@ class ReopenGeneralTopic:
|
||||||
Unique identifier (int) or username (str) of the target chat.
|
Unique identifier (int) or username (str) of the target chat.
|
||||||
|
|
||||||
Returns:
|
Returns:
|
||||||
`bool`: On success, a Boolean is returned.
|
`bool`: On success, a True is returned.
|
||||||
|
|
||||||
Example:
|
Example:
|
||||||
.. code-block:: python
|
.. code-block:: python
|
||||||
|
|
||||||
await app.reopen_forum_topic(chat_id, topic_id)
|
await app.reopen_general_topic(chat_id, topic_id)
|
||||||
"""
|
"""
|
||||||
await self.invoke(
|
await self.invoke(
|
||||||
raw.functions.channels.EditForumTopic(
|
raw.functions.channels.EditForumTopic(
|
||||||
|
|
|
||||||
|
|
@ -35,12 +35,12 @@ class UnhideGeneralTopic:
|
||||||
Unique identifier (int) or username (str) of the target chat.
|
Unique identifier (int) or username (str) of the target chat.
|
||||||
|
|
||||||
Returns:
|
Returns:
|
||||||
`bool`: On success, a Boolean is returned.
|
`bool`: On success, a True is returned.
|
||||||
|
|
||||||
Example:
|
Example:
|
||||||
.. code-block:: python
|
.. code-block:: python
|
||||||
|
|
||||||
await app.close_forum_topic(chat_id, topic_id)
|
await app.unhide_general_topic(chat_id)
|
||||||
"""
|
"""
|
||||||
await self.invoke(
|
await self.invoke(
|
||||||
raw.functions.channels.EditForumTopic(
|
raw.functions.channels.EditForumTopic(
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue