setChatLocation - libtd-ktx

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


libtd-ktx / kotlinx.telegram.coroutines / setChatLocation

setChatLocation

suspend fun TelegramFlow.setChatLocation(chatId: Long, 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

chatId - Chat identifier.

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