teleproto - v1.229.0
    Preparing search index...

    Class ChatAction

    Occurs on chat actions: user joined/left/kicked, title/photo changed, messages pinned, chat created, etc.

    client.addEventHandler((event: ChatActionEvent) => {
    if (event.userJoined) {
    console.log(`User ${event.userId} joined!`);
    }
    if (event.userLeft) {
    console.log(`User ${event.userId} left`);
    }
    if (event.newTitle) {
    console.log(`New title: ${event.newTitle}`);
    }
    if (event.newPin) {
    console.log(`Message pinned: ${event.pinnedMessageIds}`);
    }
    }, new ChatAction({}));

    Hierarchy

    • EventBuilder
      • ChatAction
    Index
    • Parameters

      • event: EventCommon | EventCommonSender

      Returns EventCommon | EventCommonSender | undefined

    blacklistChats: boolean
    chats?: string[]
    func?: CallableFunction
    resolved: boolean