DEV Community
Follow
my.telegram.org says ERROR? For public channels you may not need an api_id
Many users encounter an ERROR when attempting to create a Telegram API ID and hash on my.telegram.org/apps. This issue is widespread, with numerous forum posts and bug reports detailing the problem. Unfortunately, the exact cause of this error remains unknown to the public. Before investing time in resolving it, it's crucial to determine if an API ID is genuinely necessary for your intended task. For actions like reading public channel posts, searching public channels, or receiving new posts by polling a web preview, an API ID is not required. Utilizing the web preview at t.me/s/ or a bot token from @botfather is sufficient for these purposes. However, if you need to access private channels, groups, your own chats, or member lists, an API ID is mandatory, necessitating the use of MTProto libraries like Telethon or Kurigram. A bot token, while useful for sending messages, cannot be used to fetch past channel messages or access private content. For those requiring an API ID, known MTProto libraries like Pyrogram (though archived) and Telethon are still active. It's important to note that each phone number can only be associated with one API ID, and using unofficial clients can flag your account. Reported, though unofficial, fixes for the ERROR include disabling ad blockers and VPNs, trying different browsers or incognito modes, switching network connections, and using an IP address matching your phone number's country. The t.me/s/ web preview offers a simple, account-free way to access public channel content, displaying basic post information and allowing Paging and searching. For more complex needs, a hosted Telegram Channel Scraper on Apify is available, providing JSON output of public channel data. Without an API ID, access to private content, exact view counts, and certain media types is impossible, though posting can be achieved with a bot token.