Package it.tdlight.jni
Class TdApi.SetChatSlowModeDelay
java.lang.Object
it.tdlight.jni.TdApi.Object
it.tdlight.jni.TdApi.Function
it.tdlight.jni.TdApi.SetChatSlowModeDelay
- Enclosing class:
- TdApi
public static class TdApi.SetChatSlowModeDelay extends TdApi.Function
Changes the slow mode delay of a chat.
Available only for supergroups; requires canRestrictMembers rights.
Returns Ok
-
Field Summary
Fields Modifier and Type Field Description long
chatId
Chat identifier.static int
CONSTRUCTOR
int
slowModeDelay
New slow mode delay for the chat; must be one of 0, 10, 30, 60, 300, 900, 3600. -
Constructor Summary
Constructors Constructor Description SetChatSlowModeDelay()
Changes the slow mode delay of a chat.SetChatSlowModeDelay(long chatId, int slowModeDelay)
Changes the slow mode delay of a chat.SetChatSlowModeDelay(DataInput input)
-
Method Summary
Modifier and Type Method Description boolean
equals(Object o)
int
getConstructor()
int
hashCode()
void
serialize(DataOutputStream output)
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; must be one of 0, 10, 30, 60, 300, 900, 3600. -
CONSTRUCTOR
public static final int CONSTRUCTOR- See Also:
- Constant Field Values
-
-
Constructor Details
-
SetChatSlowModeDelay
public SetChatSlowModeDelay()Changes the slow mode delay of a chat. Available only for supergroups; requires canRestrictMembers rights.Returns
Ok
-
SetChatSlowModeDelay
public SetChatSlowModeDelay(long chatId, int slowModeDelay)Changes the slow mode delay of a chat. Available only for supergroups; requires canRestrictMembers rights.Returns
Ok
- Parameters:
chatId
- long Chat identifier.slowModeDelay
- int New slow mode delay for the chat; must be one of 0, 10, 30, 60, 300, 900, 3600.
-
SetChatSlowModeDelay
- 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()
-