Class TdApi.CreateRichMessageWithAi

Enclosing class:
TdApi

public static class TdApi.CreateRichMessageWithAi extends TdApi.Function<TdApi.RichMessage>
Creates a new rich message using an AI model. May return an error with a message "AICOMPOSE_FLOOD_PREMIUM" if Telegram Premium is required to send further requests.

Returns RichMessage

  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    boolean
    Pass true to add emoji to the text.
    static final int
    Identifier uniquely determining type of the object.
    Pass a language code in which the text will be created.
    Prompt that will be used to create the message; 0-getOption("text_composition_style_prompt_length_max") characters.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Default constructor for a function, which creates a new rich message using an AI model.
    CreateRichMessageWithAi(String prompt, String languageCode, boolean addEmojis)
    Creates a function, which creates a new rich message using an AI model.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Returns an identifier uniquely determining type of the object.

    Methods inherited from class org.drinkless.tdlib.TdApi.Function

    toString

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

    • prompt

      public String prompt
      Prompt that will be used to create the message; 0-getOption("text_composition_style_prompt_length_max") characters.
    • languageCode

      public String languageCode
      Pass a language code in which the text will be created.
    • addEmojis

      public boolean addEmojis
      Pass true to add emoji to the text.
    • CONSTRUCTOR

      public static final int CONSTRUCTOR
      Identifier uniquely determining type of the object.
      See Also:
  • Constructor Details

    • CreateRichMessageWithAi

      public CreateRichMessageWithAi()
      Default constructor for a function, which creates a new rich message using an AI model. May return an error with a message "AICOMPOSE_FLOOD_PREMIUM" if Telegram Premium is required to send further requests.

      Returns RichMessage

    • CreateRichMessageWithAi

      public CreateRichMessageWithAi(String prompt, String languageCode, boolean addEmojis)
      Creates a function, which creates a new rich message using an AI model. May return an error with a message "AICOMPOSE_FLOOD_PREMIUM" if Telegram Premium is required to send further requests.

      Returns RichMessage

      Parameters:
      prompt - Prompt that will be used to create the message; 0-getOption("text_composition_style_prompt_length_max") characters.
      languageCode - Pass a language code in which the text will be created.
      addEmojis - Pass true to add emoji to the text.
  • Method Details

    • getConstructor

      public int getConstructor()
      Description copied from class: TdApi.Object
      Returns an identifier uniquely determining type of the object.
      Specified by:
      getConstructor in class TdApi.Object
      Returns:
      this.CONSTRUCTOR