whenRestrictedChatMember

inline fun <T> ChatMember.whenRestrictedChatMember(block: (RestrictedChatMember) -> T): T?