mirror of
https://github.com/TeamPGM/pyrogram.git
synced 2024-11-24 07:51:44 +00:00
Rename toggle_pinned_stories
This commit is contained in:
parent
60282c5aa2
commit
db54c77cf3
@ -20,10 +20,11 @@ from typing import List, Union, Iterable
|
|||||||
|
|
||||||
import pyrogram
|
import pyrogram
|
||||||
from pyrogram import raw
|
from pyrogram import raw
|
||||||
|
from pyrogram import types
|
||||||
|
|
||||||
|
|
||||||
class ToggleStoriesPinned:
|
class PinStories:
|
||||||
async def toggle_stories_pinned(
|
async def pin_stories(
|
||||||
self: "pyrogram.Client",
|
self: "pyrogram.Client",
|
||||||
chat_id: Union[int, str],
|
chat_id: Union[int, str],
|
||||||
stories_ids: Union[int, Iterable[int]],
|
stories_ids: Union[int, Iterable[int]],
|
||||||
@ -51,7 +52,7 @@ class ToggleStoriesPinned:
|
|||||||
.. code-block:: python
|
.. code-block:: python
|
||||||
|
|
||||||
# Pin a single story
|
# Pin a single story
|
||||||
await app.toggle_stories_pinned(chat_id, 123456789, True)
|
await app.pin_stories(chat_id, 123456789, True)
|
||||||
|
|
||||||
"""
|
"""
|
||||||
is_iterable = not isinstance(stories_ids, int)
|
is_iterable = not isinstance(stories_ids, int)
|
Loading…
Reference in New Issue
Block a user