Skip to content

Send RCS hidden #256

@sergio-milu

Description

@sergio-milu

Hey team,

I'm using latest version and trying to send an RCS message, looking at the code i found


export class Messsages extends APIResource {
  /**
   * Send an RCS message
   *
   * @example
   * ```ts
   * const response = await client.messsages.rcs({
   *   agent_id: 'Agent007',
   *   agent_message: {},
   *   messaging_profile_id: 'messaging_profile_id',
   *   to: '+13125551234',
   * });
   * ```
   */
  rcs(body: MesssageRcsParams, options?: RequestOptions): APIPromise<MesssageRcsResponse> {
    return this._client.post('/messsages/rcs', { body, ...options });
  }
}

but seems that this code is not reachable when doing await client.messsages.rcs with this error


rcs
This expression is not callable.
  Type 'Rcs' has no call signatures.

any clue? seems like something is off

Also, there's no types available from Webhooks callbacks then the type is RCS (just SMS and MMS available)

thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions