Method: TD::ClientMethods#set_chat_location

Defined in:
lib/tdlib/client_methods.rb

#set_chat_location(chat_id, location) ⇒ TD::Types::Ok

Changes the location of a chat. Available only for some location-based supergroups, use supergroupFullInfo.can_set_location to check whether the method is allowed to use.

Parameters:

  • chat_id (Integer)

    Chat identifier.

  • location (TD::Types::ChatLocation)

    New location for the chat; must be valid and not null.

Returns:



3570
3571
3572
3573
3574
# File 'lib/tdlib/client_methods.rb', line 3570

def set_chat_location(chat_id, location)
  broadcast('@type'    => 'setChatLocation',
            'chat_id'  => chat_id,
            'location' => location)
end