teleproto - v1.230.0
    Preparing search index...

    Interface OnOptions

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

    interface OnOptions {
        blacklistChats?: boolean;
        chats?: EntityLike | EntityLike[];
        func?: (update: WithUpdateContext<AnyUpdate>) => unknown;
        independent?: boolean;
    }
    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: WithUpdateContext<AnyUpdate>) => unknown

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

    independent?: boolean

    Bypasses the middleware chain; next() only advances this registration's handler array.