Module tdlight.api

Class TdApi.SetChatLocation

Enclosing class:
TdApi

public static final class TdApi.SetChatLocation extends TdApi.Function<TdApi.Ok>
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 Details

    • chatId

      public long chatId
      Chat identifier.
    • location

      public TdApi.ChatLocation 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

      public SetChatLocation(long chatId, TdApi.ChatLocation location)
      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

      public SetChatLocation(DataInput input) throws IOException
      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
      Throws:
      IOException
  • Method Details