tdlib / td

Cross-platform library for building Telegram clients
https://core.telegram.org/tdlib
Boost Software License 1.0
7.11k stars 1.44k forks source link

How to use Setoption To Ignore Restrict Content? #2580

Closed azkadev closed 1 year ago

azkadev commented 1 year ago

I want to see adult content because I'm an adult, but why when I use this method

{
    "@type": "setOption",
    "name": "ignore_sensitive_content_restrictions",
    "value": {
        "@type": "optionValueBoolean",
        "value": true
    }
}

this error appears

{
    "@type": error,
    "code": 400,
    "message": "Option "ignore_sensitive_content_restrictions" can't be changed by the user"
}

Btw I'm from Indonesia, is it because of my country?

levlam commented 1 year ago

Tes. See "can_ignore_sensitive_content_restrictions" option in https://core.telegram.org/tdlib/options.

azkadev commented 1 year ago

Tes. See "can_ignore_sensitive_content_restrictions" option in https://core.telegram.org/tdlib/options.

I have tried but the results are false, how can my account use this?

levlam commented 1 year ago

It is a read-only option. If it is false, them you can't change the "ignore_sensitive_content_restrictions" option.

azkadev commented 1 year ago

:(