searchChatsNearby - libtd-ktx

Kotlin Coroutines extensions for Telegram API TDLib (Telegram Database library)


libtd-ktx / kotlinx.telegram.coroutines / searchChatsNearby

searchChatsNearby

suspend fun TelegramFlow.searchChatsNearby(location: Location?): ChatsNearby

Suspend function, which returns a list of users and location-based supergroups nearby. The list of users nearby will be updated for 60 seconds after the request by the updates updateUsersNearby. The request should be sent again every 25 seconds with adjusted location to not miss new chats.

Parameters

location - Current user location.

Return ChatsNearby Represents a list of chats located nearby.