GetStoryViewsList
---functions--- stories.getStoryViewsList#7ed23c57 just_contacts:flags.0?true reactions_first:flags.2?true forwards_first:flags.3?true peer:InputPeer q:flags.1?string id:int offset:string limit:int = stories.StoryViewsList
Returns
| stories.StoryViewsList |
Parameters
| just_contacts | true | optional |
| reactions_first | true | optional |
| forwards_first | true | optional |
| peer | InputPeer | required |
| q | string | optional |
| id | int | required |
| offset | string | required |
| limit | int | required |
Example
The examples below use placeholder values. Replace them with real data before running the code.
▶ Minimal
import asyncio
from ferogram import Client
app = Client("my_session", api_id=12345, api_hash="0123456789abcdef0123456789abcdef")
async def main():
await app.start()
result = await app.raw.stories.GetStoryViewsList(
peer='username',
id=42,
offset='some string here',
limit=100
)
print(result)
asyncio.run(main())
The minimal example uses Ferogram's raw proxy shorthand. Peers can be passed as strings and required primitives get safe defaults. Expand Full API to see every parameter.
▶ Full API
import asyncio
from ferogram import Client, raw
app = Client("my_session", api_id=12345, api_hash="0123456789abcdef0123456789abcdef")
async def main():
await app.start()
result = await app(raw.functions.stories.GetStoryViewsList(
just_contacts=True,
reactions_first=True,
forwards_first=True,
peer=raw.types.InputPeerSelf(),
q='some string here',
id=42,
offset='some string here',
limit=100
))
print(result)
asyncio.run(main())