- Enclosing class:
- TdApi
Changes the slow mode delay of a chat.
Available only for supergroups; requires canRestrictMembers rights.
Returns
Ok
-
Field Summary
Modifier and TypeFieldDescriptionlong
Chat identifier.static final int
int
New slow mode delay for the chat, in seconds; must be one of 0, 10, 30, 60, 300, 900, 3600. -
Constructor Summary
ConstructorDescriptionChanges the slow mode delay of a chat.SetChatSlowModeDelay
(long chatId, int slowModeDelay) Changes the slow mode delay of a chat.SetChatSlowModeDelay
(DataInput input) Changes the slow mode delay of a chat. -
Method Summary
Methods inherited from class it.tdlight.jni.TdApi.Function
toString
Methods inherited from class it.tdlight.jni.TdApi.Object
serialize
-
Field Details
-
chatId
public long chatIdChat identifier. -
slowModeDelay
public int slowModeDelayNew slow mode delay for the chat, in seconds; must be one of 0, 10, 30, 60, 300, 900, 3600. -
CONSTRUCTOR
public static final int CONSTRUCTOR- See Also:
-
-
Constructor Details
-
SetChatSlowModeDelay
public SetChatSlowModeDelay()Changes the slow mode delay of a chat. Available only for supergroups; requires canRestrictMembers rights. ReturnsOk
-
SetChatSlowModeDelay
public SetChatSlowModeDelay(long chatId, int slowModeDelay) Changes the slow mode delay of a chat. Available only for supergroups; requires canRestrictMembers rights. ReturnsOk
- Parameters:
chatId
- long Chat identifier.slowModeDelay
- int New slow mode delay for the chat, in seconds; must be one of 0, 10, 30, 60, 300, 900, 3600.
-
SetChatSlowModeDelay
Changes the slow mode delay of a chat. Available only for supergroups; requires canRestrictMembers rights. ReturnsOk
- Throws:
IOException
-
-
Method Details
-
getConstructor
public int getConstructor()- Specified by:
getConstructor
in classTdApi.Object
-
serialize
- Specified by:
serialize
in classTdApi.Object
- Throws:
IOException
-
equals
-
hashCode
public int hashCode()
-