Package org.drinkless.tdlib
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
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
FieldsModifier and TypeFieldDescriptionstatic final intIdentifier uniquely determining type of the object.booleanThe new value of hasAutomaticTranslation.longThe identifier of the channel. -
Constructor Summary
ConstructorsConstructorDescriptionDefault 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 TypeMethodDescriptionintReturns an identifier uniquely determining type of the object.Methods inherited from class org.drinkless.tdlib.TdApi.Function
toString
-
Field Details
-
supergroupId
public long supergroupIdThe identifier of the channel. -
hasAutomaticTranslation
public boolean hasAutomaticTranslationThe new value of hasAutomaticTranslation. -
CONSTRUCTOR
public static final int CONSTRUCTORIdentifier 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.ObjectReturns an identifier uniquely determining type of the object.- Specified by:
getConstructorin classTdApi.Object- Returns:
- this.CONSTRUCTOR
-