telegramsjs
    Preparing search index...

    Class InlineQueryResultBuilder

    Index

    Constructors

    Properties

    Cached result of InlineQuery builder

    Methods

    Staticarticle

    • article(
          id: string,
          title: string,
          inputMessageContent: InputMessageContent,
          options?: Omit<
              InlineQueryResultArticle,
              "id"
              | "type"
              | "title"
              | "input_message_content",
          >,
      ): InlineQueryResultArticle

      Represents a link to an article or web page.

      Parameters

      • id: string

        Unique identifier for this result, 1-64 Bytes.

      • title: string

        Title of the result.

      • inputMessageContent: InputMessageContent

        Content of the message to be sent.

      • Optionaloptions: Omit<
            InlineQueryResultArticle,
            "id"
            | "type"
            | "title"
            | "input_message_content",
        >

        out parameters.

      Returns InlineQueryResultArticle

    • Represents a link to an MP3 audio file. 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.

      • title: string

        Title.

      • audioUrl: string

        A valid URL for the audio file.

      • Optionaloptions: Omit<InlineQueryResultAudio, "id" | "type" | "title" | "audio_url">

        out parameters.

      Returns InlineQueryResultAudio

    • Represents a contact with a phone number. By default, this contact will be sent by the user. Alternatively, you can use input_message_content to send a message with the specified content instead of the contact.

      Parameters

      • id: string

        Unique identifier for this result, 1-64 Bytes.

      • phoneNumber: string

        Contact's phone number.

      • firstName: string

        Contact's first name

      • Optionaloptions: Omit<InlineQueryResultContact, "id" | "phone_number" | "type" | "first_name">

        out parameters.

      Returns InlineQueryResultContact

    • Represents a link to a file. 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. Currently, only .PDF and .ZIP files can be sent using this method.

      Parameters

      • id: string

        Unique identifier for this result, 1-64 Bytes.

      • title: string

        Title for the result.

      • url: string

        A valid URL for the file.

      • Optionaloptions: Omit<
            InlineQueryResultDocument,
            "id"
            | "type"
            | "mime_type"
            | "title"
            | "document_url",
        >

        out parameters.

      Returns InlineQueryResultDocument

    • Represents a link to a file. 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. Currently, only .PDF and .ZIP files can be sent using this method.

      Parameters

      • id: string

        Unique identifier for this result, 1-64 Bytes.

      • title: string

        Title for the result.

      • url: string

        A valid URL for the file.

      • Optionaloptions: Omit<
            InlineQueryResultDocument,
            "id"
            | "type"
            | "mime_type"
            | "title"
            | "document_url",
        >

        out parameters.

      Returns InlineQueryResultDocument

    • Represents a link to an animated GIF file. By default, this animated GIF file will be sent by the user with 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.

      • gifUrl: string

        A valid URL for the GIF file. File size must not exceed 1MB.

      • thumbnailUrl: string

        URL of the static (JPEG or GIF) or animated (MPEG4) thumbnail for the result.

      • Optionaloptions: Omit<InlineQueryResultGif, "id" | "type" | "thumbnail_url" | "gif_url">

        out parameters.

      Returns InlineQueryResultGif

    • Represents a location on a map. By default, the location will be sent by the user. Alternatively, you can use input_message_content to send a message with the specified content instead of the location.

      Parameters

      • id: string

        Unique identifier for this result, 1-64 Bytes.

      • latitude: number

        Location latitude in degrees.

      • longitude: number

        Location longitude in degrees.

      • title: string

        Location title.

      • Optionaloptions: Omit<
            InlineQueryResultLocation,
            "id"
            | "type"
            | "latitude"
            | "longitude"
            | "title",
        >

        out parameters

      Returns InlineQueryResultLocation

    • Represents a link to a video animation (H.264/MPEG-4 AVC video without sound). By default, this animated MPEG-4 file will be sent by the user with 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.

      • mpeg4Url: string

        A valid URL for the MPEG4 file. File size must not exceed 1MB.

      • thumbnailUrl: string

        URL of the static (JPEG or GIF) or animated (MPEG4) thumbnail for the result.

      • Optionaloptions: Omit<InlineQueryResultMpeg4Gif, "id" | "type" | "thumbnail_url" | "mpeg4_url">

        out parameters.

      Returns InlineQueryResultMpeg4Gif

    • Represents a link to a photo. By default, this photo will be sent by the user with 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.

      • photoUrl: string

        A valid URL of the photo. Photo must be in jpeg format. Photo size must not exceed 5MB.

      • thumbnailUrl: string

        URL of the thumbnail for the photo.

      • Optionaloptions: Omit<InlineQueryResultPhoto, "id" | "type" | "thumbnail_url" | "photo_url">

        out parameters.

      Returns InlineQueryResultPhoto

    • Represents a venue. By default, the venue will be sent by the user. Alternatively, you can use input_message_content to send a message with the specified content instead of the venue.

      Parameters

      • id: string

        Unique identifier for this result, 1-64 Bytes.

      • options: Omit<InlineQueryResultVenue, "type" | "id">

        out parameters.

      Returns InlineQueryResultVenue

    • Represents a link to a page containing an embedded video player or a video file. 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.

      If an InlineQueryResultVideo message contains an embedded video (e.g., YouTube), you must replace its content using input_message_content.

      Parameters

      • id: string

        Unique identifier for this result, 1-64 bytes.

      • title: string

        Title for the result.

      • videoUrl: string

        A valid URL for the embedded video player or video file.

      • thumbnailUrl: string

        URL of the thumbnail (JPEG only) for the video.

      • Optionaloptions: Omit<
            InlineQueryResultVideo,
            "id"
            | "type"
            | "mime_type"
            | "title"
            | "thumbnail_url"
            | "video_url",
        >

        out parameters.

      Returns InlineQueryResultVideo

    • Represents a link to a page containing an embedded video player or a video file. 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.

      If an InlineQueryResultVideo message contains an embedded video (e.g., YouTube), you must replace its content using input_message_content.

      Parameters

      • id: string

        Unique identifier for this result, 1-64 bytes.

      • title: string

        Title for the result.

      • videoUrl: string

        A valid URL for the embedded video player or video file.

      • thumbnailUrl: string

        URL of the thumbnail (JPEG only) for the video.

      • Optionaloptions: Omit<
            InlineQueryResultVideo,
            "id"
            | "type"
            | "mime_type"
            | "title"
            | "thumbnail_url"
            | "video_url",
        >

        out parameters.

      Returns InlineQueryResultVideo

    • Represents a link to a voice recording in an .OGG container encoded with OPUS. By default, this voice recording will be sent by the user. Alternatively, you can use input_message_content to send a message with the specified content instead of the the voice message.

      Parameters

      • id: string

        Unique identifier for this result, 1-64 bytes.

      • title: string

        Recording title.

      • url: string

        A valid URL for the voice recording.

      • Optionaloptions: Omit<InlineQueryResultVoice, "id" | "type" | "title" | "voice_url">

        out parameters.

      Returns InlineQueryResultVoice