setChatDescription

suspend fun TelegramBotApiClient.setChatDescription(requestBody: SetChatDescriptionRequest): TelegramResponse<Boolean>

Use this method to change the description of a group, a supergroup or a channel. The bot must be an administrator in the chat for this to work and must have the appropriate admin rights. Returns True on success.

suspend fun TelegramBotApiClient.setChatDescription(chatId: Int, description: String? = null): TelegramResponse<Boolean>

Use this method to change the description of a group, a supergroup or a channel. The bot must be an administrator in the chat for this to work and must have the appropriate admin rights. Returns True on success.

Parameters

chatId

Unique identifier for the target chat or username of the target channel (in the format @channelusername)

description

New chat description, 0-255 characters