Package it.tdlight.jni
Class TdApi.SetChatLocation
- Enclosing class:
- TdApi
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
FieldsModifier and TypeFieldDescriptionlong
Chat identifier.static final int
New location for the chat; must be valid and not null. -
Constructor Summary
ConstructorsConstructorDescriptionChanges the location of a chat.SetChatLocation
(long chatId, TdApi.ChatLocation location) Changes the location of a chat.SetChatLocation
(DataInput input) -
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. -
location
New location for the chat; must be valid and not null. -
CONSTRUCTOR
public static final int CONSTRUCTOR- See Also:
-
-
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()
-