Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface EditedMessageInterface

Hierarchy

Index

Properties

func?: ((event: EditedMessageEvent) => boolean)

Type declaration

incoming?: boolean

If set to true, only incoming messages will be handled. Mutually exclusive with outgoing (can only set one of either).

outgoing?: boolean

If set to true, only outgoing messages will be handled. Mutually exclusive with incoming (can only set one of either).

fromUsers?: EntityLike[]

Unlike chats, this parameter filters the senders of the message. That is, only messages sent by these users will be handled. Use chats if you want private messages with this/these users. from_users lets you filter by messages sent by one or more users across the desired chats (doesn't need a list).

forwards?: boolean

Whether forwarded messages should be handled or not. By default, both forwarded and normal messages are included. If it's True only forwards will be handled. If it's False only messages that are not forwards will be handled.

pattern?: RegExp

If set, only messages matching this pattern will be handled.

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.

Generated using TypeDoc