Options
All
  • Public
  • Public/Protected
  • All
Menu

Class EditedMessage

Occurs whenever a text message or a message with media was edited.

example
async function editedEventPrint(event: EditedMessageEvent) {
const message = event.message as Api.Message;

console.log(`Message ${message.id} from channel ${message.chatId!.toString();} was edited at ${message.editDate}`)
}
// adds an event handler for edited messages
client.addEventHandler(editedEventPrint, new EditedMessage({}));

Hierarchy

Index

Properties

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

Type declaration

incoming?: boolean
outgoing?: boolean
fromUsers?: EntityLike[]
forwards?: boolean
pattern?: RegExp
chats?: string[]
blacklistChats: boolean
resolved: boolean

Constructors

Methods

  • addAttributes(update: any): void

Generated using TypeDoc