teleproto - v1.229.0
    Preparing search index...

    Interface OnOptions

    Filters accepted by ClientUpdates.on, mirroring the event builders.

    interface OnOptions {
        blacklistChats?: boolean;
        chats?: EntityLike | EntityLike[];
        func?: (update: AnyUpdate) => unknown;
    }
    Index
    blacklistChats?: boolean

    Treat chats as a blacklist instead of a whitelist.

    chats?: EntityLike | EntityLike[]

    Only handle updates coming from these chats - a username, an id or an entity. Updates that carry no peer at all (updateDcOptions, updatePrivacy and the like) never match this filter.

    func?: (update: AnyUpdate) => unknown

    Extra predicate; the handler runs only when it returns a truthy value.