Class DeleteMyCommands

java.lang.Object
io.github.natanimn.telebof.requests.AbstractBaseRequest<DeleteMyCommands, Boolean>
io.github.natanimn.telebof.requests.delete.DeleteMyCommands

public class DeleteMyCommands extends AbstractBaseRequest<DeleteMyCommands, Boolean>
DeleteMyCommands class. Returns True on success.
Since:
3 March 2025
See Also:
  • Constructor Details

    • DeleteMyCommands

      public DeleteMyCommands(Api api)
      Required
      Parameters:
      api - api
  • Method Details

    • scope

      public DeleteMyCommands scope(BotCommandScope bot_command_scope)
      Optional
      Parameters:
      bot_command_scope - A JSON-serialized object, describing scope of users for which the commands are relevant. Defaults to BotCommandScopeDefault.
      Returns:
      DeleteMyCommands
    • languageCode

      public DeleteMyCommands languageCode(String language_code)
      Optional
      Parameters:
      language_code - A two-letter ISO 639-1 language code. If empty, commands will be applied to all users from the given scope, for whose language there are no dedicated commands
      Returns:
      DeleteMyCommands