grammyjs / grammY

The Telegram Bot Framework.
https://grammy.dev
MIT License
2.04k stars 106 forks source link

feat: suggest "privacy" commands #610

Closed KnorpelSenf closed 3 weeks ago

KnorpelSenf commented 3 weeks ago

In response to https://t.me/BotNews/96, the right thing to do is to suggest developers to add a section about privacy.

HeeroML commented 3 weeks ago

I actually disagree to this. But it's not a big change. In the docs is the right place for it. I get where you come from with this pr, but we actually don't know enough to make it such a recommendation, not every country is required to have such a policy in place or they have different regulations.

roziscoding commented 3 weeks ago

I actually disagree to this. But it's not a big change. In the docs is the right place for it. I get where you come from with this pr, but we actually don't know enough to make it such a recommendation, not every country is required to have such a policy in place or they have different regulations.

Tha announcement says every bot should respond to the command. It is a "standardized" command as much as /help or /start IMO

KnorpelSenf commented 3 weeks ago

I actually disagree to this. But it's not a big change. In the docs is the right place for it. I get where you come from with this pr, but we actually don't know enough to make it such a recommendation, not every country is required to have such a policy in place or they have different regulations.

That is incorrect. According to the GDPR, every service that is accessible by citizens of an EU country must comply with it. Every bot is available in the EU, which means that every bot must comply.

Legally, there are only two types of bots: those with a privacy notice and those who break (at least) EU law. In practice, this means that nearly every new bot will implement a privacy notice.

Whether or not we should add an auto-complete suggestion for this is a different question, but my main motivation for adding this command is actually not a legal one—it is that BotNews encourages every bot developer to implement /privacy. Similarly, native apps have special handling for /start, /help, and /settings in their UI. Those commands all are a convention defined by Telegram, and grammY should always stay close to how bots are meant to be written.

HeeroML commented 3 weeks ago

Tha announcement says every bot should respond to the command. It is a "standardized" command as much as /help or /start IMO

Your right, i read it multiple times and misread the "must make it"

KnorpelSenf commented 3 weeks ago

Thanks for being thorough! I appreciate it :)

HeeroML commented 3 weeks ago

That is incorrect. According to the GDPR, every service that is accessible by citizens of an EU country must comply with it.

This is actually incorrect too. It needs to target EU Users. Chinese Websites, speaking chinese and so on but not being blocked in EU, don't need to comply. Or i got something wrong with GDPR. It's mainly the intent to process EU-Data.

KnorpelSenf commented 3 weeks ago

https://gdpr.eu/companies-outside-of-europe/ seems to explain it fairly well.

You might be referring to targeting EU consumers, and I agree that this part does not apply. However, there is a second part: monitoring. If your bot is recording data about EU citizens (storing any kind of data in your database about them) then GDPR applies.

There seems to be an exception, though. If your bot is neither professional nor commercial, then this could be an exception. At this point I'm not entirely sure anymore.

Adding a short privacy note is trivial, though, so it's probably best to just do it.