Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface DefaultEventInterface

Hierarchy

Index

Properties

chats?: EntityLike[]

May be one or more entities (username/peer/etc.), preferably IDs.
By default, only matching chats will be handled.

blacklistChats?: boolean

Whether to treat the chats as a blacklist instead of as a whitelist (default).
This means that every chat will be handled except those specified in chats
which will be ignored if blacklistChats:true.

func?: CallableFunction

A callable function that should accept the event as input parameter, and return a value indicating whether the event should be dispatched or not (any truthy value will do, it does not need to be a bool). It works like a custom filter:

Generated using TypeDoc