UpdateDialogFilterRequest

Only users can use this request. See code examples.

---functions---
messages.updateDialogFilter#1ad4a04a flags:# id:int filter:flags.0?DialogFilter = Bool

Returns

Bool

This type has no instances available.

Parameters

idint
filterDialogFilterThis argument defaults to None and can be omitted.

Known RPC errors

This request can't cause any RPC error as far as we know.

Example

from telethon.sync import TelegramClient
from telethon import functions, types

with TelegramClient(name, api_id, api_hash) as client:
    result = client(functions.messages.UpdateDialogFilterRequest(
        id=42,
        filter=types.DialogFilter(
            id=42,
            title='My awesome title',
            pinned_peers=['username'],
            include_peers=['username'],
            exclude_peers=['username'],
            contacts=True,
            non_contacts=True,
            groups=True,
            broadcasts=True,
            bots=True,
            exclude_muted=True,
            exclude_read=True,
            exclude_archived=True,
            emoticon='some string here',
            color=42
        )
    ))
    print(result)