Type alias OnMessageArgs

OnMessageArgs: {
    from: string;
    message: ServerMessage;
    name?: string;
    phoneID: string;
    raw: PostData;
}

Type declaration

  • from: string

    The user's phone number

  • message: ServerMessage

    The messages object

  • Optional name?: string

    The username

  • phoneID: string

    The bot's phoneID

  • raw: PostData

    The raw data from the API

Generated using TypeDoc