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 Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
    Identifier uniquely determining type of the object.
    boolean
    The new value of hasAutomaticTranslation.
    long
    The identifier of the channel.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Default constructor for a function, which toggles whether messages are automatically translated in the channel chat; requires canChangeInfo administrator right in the channel.
    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.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Returns an identifier uniquely determining type of the object.

    Methods inherited from class org.drinkless.tdlib.TdApi.Function

    toString

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • 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.Object
      Returns:
      this.CONSTRUCTOR