getUserPrivacySettingRules - libtd-ktx

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


libtd-ktx / kotlinx.telegram.coroutines / getUserPrivacySettingRules

getUserPrivacySettingRules

suspend fun TelegramFlow.getUserPrivacySettingRules(setting: UserPrivacySetting?): UserPrivacySettingRules

Suspend function, which returns the current privacy settings.

Parameters

setting - The privacy setting.

Return UserPrivacySettingRules A list of privacy rules. Rules are matched in the specified order. The first matched rule defines the privacy setting for a given user. If no rule matches, the action is not allowed.