gampang - v2.3.7
    Preparing search index...

    Class ContextInfo

    ContextInfo

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    client: Client

    Gampang Client

    lexer: Lexer
    parser: Parser
    queue: AsyncQueue = ...

    Accessors

    • get authorNumber(): string

      Get author phone number of this message.

      Returns string

    • get clickedButtons(): | undefined
      | IListResponseMessage
      | IButtonsResponseMessage
      | ITemplateButtonReplyMessage

      Get detail from clicked button

      Returns
          | undefined
          | IListResponseMessage
          | IButtonsResponseMessage
          | ITemplateButtonReplyMessage

    • get flags(): string[]

      Command's flags (e.g. --flag1, --flag2, /flag3)

      Returns string[]

    • get participant(): undefined | GroupParticipant

      Get GroupParticipant class.

      Returns undefined | GroupParticipant

    Methods

    • Create whatsapp poll/vote

      Parameters

      • name: string

        Poll name

      • values: string[]

        Poll values (options)

      • selectableOptionsCount: number = values.length

        Selectable options count

      Returns Promise<undefined | Context>

    • Reply a message with audio

      Parameters

      • audio: string | Buffer<ArrayBufferLike>

        URL/Buffer audio

      • isVN: boolean = false

        Is it voice note?

      • Optionaloptions: AnyMessageContent

        Send message options

      Returns Promise<undefined | Context>

    • Reply a message with photo

      Parameters

      • photo: string | Buffer<ArrayBufferLike>

        A Photo

      • Optionalcaption: string

        A Photo caption

      • Optionaloptions: AnyMessageContent

        Send message options

      Returns Promise<undefined | Context>

    • Reply a message using sticker

      Parameters

      • sticker: string | Buffer<ArrayBufferLike>

        Sticker URL or Buffer

      • Optionaloptions: AnyMessageContent

        Reply message options

      Returns Promise<undefined | Context>

    • Reply a message with video

      Parameters

      • video: string | Buffer<ArrayBufferLike>

        Video source want to send.

      • Optionalcaption: string

        Video caption

      • Optionaloptions: AnyMessageContent

        Send message options

      Returns Promise<undefined | Context>

    • Send raw message

      Parameters

      • raw: AnyMessageContent

        AnyMessageContent message options

      • OptionalmiscOpt: MiscMessageGenerationOptions

        Misc message generation options

      Returns Promise<undefined | Context>