Skip to content

ni554n/truecallerjs_bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

📞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

Host

Setup Telegram Bot

  1. Create a new bot using @BotFather.

  2. Copy the bot token, it will be needed during deploy and setting the webhook later.

  3. 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
    

Deno Deploy

  1. Fork this repo on GitHub.

  2. Create a new Deno Deploy App from the forked repo.

  3. Add the TG_THIS_BOT_TOKEN and other Environment Variables from .env.example file. You can skip adding the optional envs as they aren't critical to the service.

  4. After a successful deployment, add a Deno KV Database to the App.

  5. 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
    
  6. Verify if everything is set correctly.

    https://api.telegram.org/bot<YOUR_BOT_TOKEN>/getWebhookInfo
    

Information

Author: Nissan Ahmed (@ni554n)

Website: anissan.com

About

A Telegram bot to lookup phone number info via Truecaller API

Topics

Resources

Stars

Watchers

Forks

Contributors