set_blocked()¶
- async Client.set_blocked()¶
Replace the contents of an entire blocklist.
Usable by Users Bots- Parameters:
peers (List of
int|str|InputPeer) – Full list of peers to set in the blocklist.my_stories_from (
bool, optional) – Whether to edit the story blocklist; if not set, edits the main blocklist.limit (
int, optional) – Maximum number of results to return. Defaults to 100.
- Returns:
bool– On success, True is returned.
Example
await app.set_blocked([12345, "spammer_user"])