haskell-tdlib-2.0.47.0
Safe HaskellSafe-Inferred
LanguageGHC2021

TD.Query.SetCommands

Synopsis

Documentation

data SetCommands Source #

Sets the list of commands supported by the bot for the given user scope and language; for bots only. Returns Ok

Constructors

SetCommands 

Fields

  • scope :: Maybe BotCommandScope

    The scope to which the commands are relevant; pass null to change commands in the default bot command scope

  • language_code :: Maybe Text

    A two-letter ISO 639-1 language code. If empty, the commands will be applied to all users from the given scope, for which language there are no dedicated commands

  • commands :: Maybe [BotCommand]

    List of the bot's commands