Telegram - A new bot to simply get your user, group or chat ID on Telegram hosted on Cloudflare Workers

Telegram - A new bot to simply get your user, group or chat ID on Telegram hosted on Cloudflare Workers

· json · rss
Subscribe:

UPDATE 10 APRIL 2024: Bot is now fixed.

I know there are a lot of Telegram bots out there that do this, however I realized there has been a few I tried (even those recommended on online forums) which are outright no longer maintained and stopped working long ago. It took me many tries to find the one that worked.

Solution

Bot: http://t.me/icanhazidbot

Source: https://gitlab.com/jarylc/cf-workers-icanhazid-telegram-bot

I decided to take matters into my own hands and leveraged Cloudflare Workers uptime and reliability to host a bot that simply does the job without a lot of maintenance required (due to serverless). This was inspired by https://icanhazip.com as well which is also hosted on Cloudflare Workers.

If a developer ever requests your user ID, you can simply just tag the bot @icanhazid, wait for the prompt, and tap on the ID.

Feel free to start a chat with that bot to get your own ID as well.

To grab a group chat ID, you would have to invite the bot to a group.

If everything is in order, the reply is almost instantaneous as well!

Hack away!