Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Telegram API for storing channels a worker is in #457

Open
Tracked by #3
nolanjacobson opened this issue Jul 29, 2024 · 1 comment
Open
Tracked by #3

feat: Telegram API for storing channels a worker is in #457

nolanjacobson opened this issue Jul 29, 2024 · 1 comment

Comments

@nolanjacobson
Copy link
Contributor

nolanjacobson commented Jul 29, 2024

The Telegram API is designed with user privacy in mind. As such, it does not provide a direct method to retrieve a comprehensive list of all channels a user is a member of. This is to protect the privacy of users and to prevent the potential misuse of such data, such as for spamming or unauthorized data collection.

However, if you are a member of a channel and have the necessary permissions, you can query messages from that channel. This is because once you are a member of a channel, you have access to its content, and the API provides methods to interact with that content, such as reading messages, under the assumption that you are doing so for legitimate purposes.

The distinction here is between accessing content you have been granted access to (which is allowed) versus enumerating a user's channel memberships (which is not allowed). The former is a feature of the service provided by Telegram, while the latter could be a privacy concern.

When you query messages from a channel using methods like ChannelsGetMessages, you are using the API to access content in a channel where you have already established membership. This is considered a legitimate use of the API.
In contrast, being able to programmatically list all channels a user is a member of could enable developers to create profiles of users' interests and affiliations without their consent, which would be a significant privacy issue.

Therefore, the Telegram API restricts the ability to list all channels a user is a member of to protect user privacy and to comply with various global privacy regulations. When developing applications and bots using the Telegram API, it's important to respect these limitations and ensure that user data is handled responsibly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants