Class 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 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:
      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

      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
      Throws:
      IOException
  • Method Details