Class TdApi.ToggleSupergroupHasAutomaticTranslation

java.lang.Object
org.drinkless.tdlib.TdApi.Object
org.drinkless.tdlib.TdApi.Function<TdApi.Ok>
org.drinkless.tdlib.TdApi.ToggleSupergroupHasAutomaticTranslation
Enclosing class:
TdApi

public static class TdApi.ToggleSupergroupHasAutomaticTranslation extends TdApi.Function<TdApi.Ok>
Toggles whether messages are automatically translated in the channel chat; requires canChangeInfo administrator right in the channel. The chat must have at least chatBoostFeatures.minAutomaticTranslationBoostLevel boost level to enable automatic translation.

Returns Ok

  • Field Details

    • supergroupId

      public long supergroupId
      The identifier of the channel.
    • hasAutomaticTranslation

      public boolean hasAutomaticTranslation
      The new value of hasAutomaticTranslation.
    • CONSTRUCTOR

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

    • ToggleSupergroupHasAutomaticTranslation

      public ToggleSupergroupHasAutomaticTranslation()
      Default constructor for a function, which toggles whether messages are automatically translated in the channel chat; requires canChangeInfo administrator right in the channel. The chat must have at least chatBoostFeatures.minAutomaticTranslationBoostLevel boost level to enable automatic translation.

      Returns Ok

    • ToggleSupergroupHasAutomaticTranslation

      public ToggleSupergroupHasAutomaticTranslation(long supergroupId, boolean hasAutomaticTranslation)
      Creates a function, which toggles whether messages are automatically translated in the channel chat; requires canChangeInfo administrator right in the channel. The chat must have at least chatBoostFeatures.minAutomaticTranslationBoostLevel boost level to enable automatic translation.

      Returns Ok

      Parameters:
      supergroupId - The identifier of the channel.
      hasAutomaticTranslation - The new value of hasAutomaticTranslation.
  • 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.Function<TdApi.Ok>
      Returns:
      this.CONSTRUCTOR