Class InlineQueryResultCachedBuilder

Constructors

Methods

  • Represents a link to an MP3 audio file stored on the Telegram servers. By default, this audio file will be sent by the user. Alternatively, you can use input_message_content to send a message with the specified content instead of the audio.

    Parameters

    • id: string

      Unique identifier for this result, 1-64 bytes.

    • fileId: string

      A valid file identifier for the audio file.

    • Optionaloptions: Omit<InlineQueryResultCachedAudio, "id" | "type" | "audio_file_id">

      out parameters.

    Returns InlineQueryResultCachedAudio

  • Represents a link to a file stored on the Telegram servers. By default, this file will be sent by the user with an optional caption. Alternatively, you can use input_message_content to send a message with the specified content instead of the file.

    Parameters

    • id: string

      Unique identifier for this result, 1-64 bytes.

    • title: string

      Title for the result.

    • fileId: string

      A valid file identifier for the file.

    • Optionaloptions: Omit<InlineQueryResultCachedDocument,
          | "id"
          | "type"
          | "title"
          | "document_file_id">

      out parameters.

    Returns InlineQueryResultCachedDocument

  • Represents a link to an animated GIF file stored on the Telegram servers. By default, this animated GIF file will be sent by the user with an optional caption. Alternatively, you can use input_message_content to send a message with specified content instead of the animation.

    Parameters

    • id: string

      Unique identifier for this result, 1-64 bytes.

    • fileId: string

      A valid file identifier for the GIF file.

    • Optionaloptions: Omit<InlineQueryResultCachedGif, "id" | "type" | "gif_file_id">

      out parameters.

    Returns InlineQueryResultCachedGif

  • Represents a link to a video animation (H.264/MPEG-4 AVC video without sound) stored on the Telegram servers. By default, this animated MPEG-4 file will be sent by the user with an optional caption. Alternatively, you can use input_message_content to send a message with the specified content instead of the animation.

    Parameters

    • id: string

      Unique identifier for this result, 1-64 bytes.

    • fileId: string

      A valid file identifier for the GIF file.

    • Optionaloptions: Omit<InlineQueryResultCachedMpeg4Gif, "id" | "type" | "mpeg4_file_id">

      out parameters.

    Returns InlineQueryResultCachedMpeg4Gif

  • Represents a link to a photo stored on the Telegram servers. By default, this photo will be sent by the user with an optional caption. Alternatively, you can use input_message_content to send a message with the specified content instead of the photo.

    Parameters

    • id: string

      Unique identifier for this result, 1-64 bytes.

    • fileId: string

      A valid file identifier of the photo.

    • Optionaloptions: Omit<InlineQueryResultCachedPhoto, "id" | "type" | "photo_file_id">

      out parameters.

    Returns InlineQueryResultCachedPhoto

  • Represents a link to a sticker stored on the Telegram servers. By default, this sticker will be sent by the user. Alternatively, you can use input_message_content to send a message with the specified content instead of the sticker.

    Parameters

    • id: string

      Unique identifier for this result, 1-64 bytes.

    • fileId: string

      A valid file identifier of the sticker.

    • Optionaloptions: Omit<InlineQueryResultCachedSticker, "id" | "type" | "sticker_file_id">

      out parameters.

    Returns InlineQueryResultCachedSticker

  • Represents a link to a video file stored on the Telegram servers. By default, this video file will be sent by the user with an optional caption. Alternatively, you can use input_message_content to send a message with the specified content instead of the video.

    Parameters

    • id: string

      Unique identifier for this result, 1-64 bytes.

    • title: string

      Title for the result.

    • fileId: string

      A valid file identifier for the video file.

    • Optionaloptions: Omit<InlineQueryResultCachedVideo,
          | "id"
          | "type"
          | "title"
          | "video_file_id">

      out parameters.

    Returns InlineQueryResultCachedVideo

  • Represents a link to a voice message stored on the Telegram servers. By default, this voice message will be sent by the user. Alternatively, you can use input_message_content to send a message with the specified content instead of the voice message.

    Parameters

    • id: string

      Unique identifier for this result, 1-64 bytes.

    • title: string

      Voice message title.

    • fileId: string

      A valid file identifier for the voice message.

    • Optionaloptions: Omit<InlineQueryResultCachedVoice,
          | "id"
          | "type"
          | "title"
          | "voice_file_id">

      out parameters.

    Returns InlineQueryResultCachedVoice