Package org.drinkless.tdlib
Class TdApi.ToggleSupergroupCanHaveSponsoredMessages
java.lang.Object
org.drinkless.tdlib.TdApi.Object
org.drinkless.tdlib.TdApi.Function<TdApi.Ok>
org.drinkless.tdlib.TdApi.ToggleSupergroupCanHaveSponsoredMessages
- Enclosing class:
- TdApi
Toggles whether sponsored messages are shown in the channel chat; requires owner privileges in the channel. The chat must have at least chatBoostFeatures.minSponsoredMessageDisableBoostLevel boost level to disable sponsored messages.
Returns Ok
-
Field Summary
FieldsModifier and TypeFieldDescriptionbooleanThe new value of canHaveSponsoredMessages.static final intIdentifier uniquely determining type of the object.longThe identifier of the channel. -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor for a function, which toggles whether sponsored messages are shown in the channel chat; requires owner privileges in the channel.ToggleSupergroupCanHaveSponsoredMessages(long supergroupId, boolean canHaveSponsoredMessages) Creates a function, which toggles whether sponsored messages are shown in the channel chat; requires owner privileges 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. -
canHaveSponsoredMessages
public boolean canHaveSponsoredMessagesThe new value of canHaveSponsoredMessages. -
CONSTRUCTOR
public static final int CONSTRUCTORIdentifier uniquely determining type of the object.- See Also:
-
-
Constructor Details
-
ToggleSupergroupCanHaveSponsoredMessages
public ToggleSupergroupCanHaveSponsoredMessages()Default constructor for a function, which toggles whether sponsored messages are shown in the channel chat; requires owner privileges in the channel. The chat must have at least chatBoostFeatures.minSponsoredMessageDisableBoostLevel boost level to disable sponsored messages.Returns
Ok -
ToggleSupergroupCanHaveSponsoredMessages
public ToggleSupergroupCanHaveSponsoredMessages(long supergroupId, boolean canHaveSponsoredMessages) Creates a function, which toggles whether sponsored messages are shown in the channel chat; requires owner privileges in the channel. The chat must have at least chatBoostFeatures.minSponsoredMessageDisableBoostLevel boost level to disable sponsored messages.Returns
Ok- Parameters:
supergroupId- The identifier of the channel.canHaveSponsoredMessages- The new value of canHaveSponsoredMessages.
-
-
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
-