A Telegram bot that uses an unofficial Truecaller API to look up phone number information instantly. It's an alternative for occasional use of Truecaller than running their app in background all the time.
-
Create a new bot using @BotFather.
-
Copy the bot token, it will be needed during deploy and setting the webhook later.
-
Set the bot commands:
login - Login to Truecaller installation_id - Login via existing token logout - Logout from Truecaller info - Information about the bot & installation_id
-
Fork this repo on GitHub.
-
Create a new Deno Deploy App from the forked repo.
-
Add the
TG_THIS_BOT_TOKENand other Environment Variables from .env.example file. You can skip adding the optional envs as they aren't critical to the service. -
After a successful deployment, add a Deno KV Database to the App.
-
Copy the production url from Deno console and edit the following link replacing the
<...>parts with your data and visit it from a browser.https://api.telegram.org/bot<YOUR_BOT_TOKEN>/setWebhook?url=<YOUR_DENO_DEPLOY_URL>&allowed_updates=%5B%22message%22%5D -
Verify if everything is set correctly.
https://api.telegram.org/bot<YOUR_BOT_TOKEN>/getWebhookInfo
Author: Nissan Ahmed (@ni554n)
Website: anissan.com
