libtd-ktx / kotlinx.telegram.coroutines / setChatNotificationSettings
setChatNotificationSettings
suspend fun TelegramFlow.setChatNotificationSettings(chatId: Long, notificationSettings: ChatNotificationSettings?): Unit
Suspend function, which changes the notification settings of a chat. Notification settings of a chat with the current user (Saved Messages) can’t be changed.
Parameters
chatId - Chat identifier.
notificationSettings - New notification settings for the chat. If the chat is muted for more
than 1 week, it is considered to be muted forever.