get_nearby_chats()

async Client.get_nearby_chats()

Get nearby chats.

Usable by Users Bots
Parameters:
  • latitude (float) – Latitude of the location.

  • longitude (float) – Longitude of the location.

Returns:

List of Chat – On success, a list of nearby chats is returned.

Example

chats = await app.get_nearby_chats(latitude, longitude)
print(chats)