haskell-tdlib-2.0.47.0
Safe HaskellSafe-Inferred
LanguageGHC2021

TD.Query.SetBotName

Synopsis

Documentation

data SetBotName Source #

Sets the name of a bot. Can be called only if userTypeBot.can_be_edited == true. Returns Ok

Constructors

SetBotName 

Fields

  • bot_user_id :: Maybe Int

    Identifier of the target bot

  • language_code :: Maybe Text

    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 :: Maybe Text

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

Instances

Instances details
ToJSON SetBotName Source # 
Instance details

Defined in TD.Query.SetBotName

Show SetBotName Source # 
Instance details

Defined in TD.Query.SetBotName

Eq SetBotName Source # 
Instance details

Defined in TD.Query.SetBotName

ShortShow SetBotName Source # 
Instance details

Defined in TD.Query.SetBotName