Module tdlight.api

Class TdApi.SetBotName

Enclosing class:
TdApi

public static final class TdApi.SetBotName extends TdApi.Function<TdApi.Ok>
Sets the name of a bot. Can be called only if userTypeBot.canBeEdited == true. Returns Ok
  • Field Details

    • botUserId

      public long botUserId
      Identifier of the target bot.
    • languageCode

      public String languageCode
      A two-letter ISO 639-1 language code. If empty, the name will be shown to all users for whose languages there is no dedicated name.
    • name

      public String name
      New bot's name on the specified language; 0-64 characters; must be non-empty if language code is empty.
    • CONSTRUCTOR

      public static final int CONSTRUCTOR
      See Also:
  • Constructor Details

    • SetBotName

      public SetBotName()
      Sets the name of a bot. Can be called only if userTypeBot.canBeEdited == true. Returns Ok
    • SetBotName

      public SetBotName(long botUserId, String languageCode, String name)
      Sets the name of a bot. Can be called only if userTypeBot.canBeEdited == true. Returns Ok
      Parameters:
      botUserId - long Identifier of the target bot.
      languageCode - String A two-letter ISO 639-1 language code. If empty, the name will be shown to all users for whose languages there is no dedicated name.
      name - String New bot's name on the specified language; 0-64 characters; must be non-empty if language code is empty.
    • SetBotName

      public SetBotName(DataInput input) throws IOException
      Sets the name of a bot. Can be called only if userTypeBot.canBeEdited == true. Returns Ok
      Throws:
      IOException
  • Method Details