Package it.tdlight.jni
Class TdApi.SetChatLocation
java.lang.Object
it.tdlight.jni.TdApi.Object
it.tdlight.jni.TdApi.Function
it.tdlight.jni.TdApi.SetChatLocation
- Enclosing class:
- TdApi
public static class TdApi.SetChatLocation extends TdApi.Function
Changes the location of a chat.
Available only for some location-based
supergroups, use supergroupFullInfo.canSetLocation
to check whether the method is allowed to use.
Returns Ok
-
Field Summary
Fields Modifier and Type Field Description long
chatId
Chat identifier.static int
CONSTRUCTOR
TdApi.ChatLocation
location
New location for the chat; must be valid and not null. -
Constructor Summary
Constructors Constructor Description SetChatLocation()
Changes the location of a chat.SetChatLocation(long chatId, TdApi.ChatLocation location)
Changes the location of a chat.SetChatLocation(DataInput input)
-
Method Summary
Modifier and Type Method Description boolean
equals(Object o)
int
getConstructor()
int
hashCode()
void
serialize(DataOutput 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. -
location
New location for the chat; must be valid and not null. -
CONSTRUCTOR
public static final int CONSTRUCTOR- See Also:
- Constant Field Values
-
-
Constructor Details
-
SetChatLocation
public SetChatLocation()Changes the location of a chat. Available only for some location-based supergroups, use supergroupFullInfo.canSetLocation to check whether the method is allowed to use.Returns
Ok
-
SetChatLocation
Changes the location of a chat. Available only for some location-based supergroups, use supergroupFullInfo.canSetLocation to check whether the method is allowed to use.Returns
Ok
- Parameters:
chatId
- long Chat identifier.location
- ChatLocation New location for the chat; must be valid and not null.
-
SetChatLocation
- 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()
-