Options
All
  • Public
  • Public/Protected
  • All
Menu

Send Voice API Payload

Hierarchy

Index

Properties

Optional caption

caption: string

Voice message caption, 0-200 characters.

chat_id

chat_id: number | string

Unique identifier for the target chat or username of the target channel (in the format @channelusername).

Optional disable_notification

disable_notification: boolean

Sends the message silently. Users will receive a notification with no sound.

Optional duration

duration: number

Duration of the voice message in seconds.

Optional reply_markup

Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard, instructions to remove reply keyboard or to force a reply from the user.

Optional reply_to_message_id

reply_to_message_id: number

If the message is a reply, ID of the original message.

voice

voice: InputFile | string

Audio file to send. Pass a file_id as String to send a video that exists on the Telegram servers (recommended), pass an HTTP URL as a String for Telegram to get a video from the Internet, or upload a new video using multipart/form-data

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method

Generated using TypeDoc