public static class TdApi.ToggleSupergroupCanHaveSponsoredMessages extends TdApi.Function<TdApi.Ok>
Returns Ok
| Modifier and Type | Field and Description |
|---|---|
boolean |
canHaveSponsoredMessages
The new value of canHaveSponsoredMessages.
|
static int |
CONSTRUCTOR
Identifier uniquely determining type of the object.
|
long |
supergroupId
The identifier of the channel.
|
| Constructor and Description |
|---|
ToggleSupergroupCanHaveSponsoredMessages()
Default 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.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getConstructor()
Returns an identifier uniquely determining type of the object.
|
toStringpublic long supergroupId
public boolean canHaveSponsoredMessages
public static final int CONSTRUCTOR
public ToggleSupergroupCanHaveSponsoredMessages()
Returns Ok
public ToggleSupergroupCanHaveSponsoredMessages(long supergroupId,
boolean canHaveSponsoredMessages)
Returns Ok
supergroupId - The identifier of the channel.canHaveSponsoredMessages - The new value of canHaveSponsoredMessages.public int getConstructor()
TdApi.ObjectgetConstructor in class TdApi.Object