libtd-ktx / kotlinx.telegram.extensions / ChatKtx / setLocation
setLocation
open suspend fun Chat.setLocation(location: ChatLocation?): Unit
Suspend function, which 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.
Parameters
location - New location for the chat; must be valid and not null.