truecallerjs_bot icon indicating copy to clipboard operation
truecallerjs_bot copied to clipboard

A Telegram bot to lookup phone number info via Truecaller API

📞Truecaller Search Bot

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.



This bot is based on the sumithemmadi/truecallerjs library and is live at @truecallerjs_bot

Self-host

This is a Deno project currently deployed on Deno Deploy. It uses Deno KV which requires you to join the waitlist first before you get access to it.

Setup Telegram Bot

  1. Create a new bot using @BotFather.

  2. Set the bot commands:

    login - Login to Truecaller
    installation_id - Login via existing token
    logout - Logout from Truecaller
    info - Information about the bot
    
  3. Set the webhook URL after deploying the bot using the following procedure.

Deno Deploy

  1. Fork this repo on GitHub.
  2. Create a new Deno Deploy project from the forked repo.
  3. Go to the project's Settings tab and add the Environment Variables from .env.example file. You can skip adding the optional envs as they aren't critical to the service.
  4. Grab the deployment URL from the Overview tab and set the webhook mentioned in previous section.

Information

Author: Nissan Ahmed (@ni554n)

Donate: PayPal