Skip to content
/ oiwa Public

A simple Telegram bot that converts a phone number to a direct whatsapp chat link

License

Notifications You must be signed in to change notification settings

amr3k/oiwa

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

90 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Open in WhatsApp

LICENSE GitHub issues GitHub code size in bytes Lines of code Hits-of-Code

I was using a great app to open a whatsapp chat with a given number directly without saving that number in my contact list, but I felt it was overkill and uninstalled it, then searched telegram for a bot doint the same job but couldn't find so decided to make a new one.

Deploy

If you want to deploy to vercel, you'll find the relevant code in vercel branch, just select it from top left branches menu, or locally by running git checkout vercel.

Using docker

Requirements

Steps

  • Add your bot token to docker-compose.yml file
  • Run docker-compose up -d

Development

Make sure you have Python 3.12 and poetry installed.

  • Clone this repo
    • git clone https://github.com/amr3k/oiwa
    • cd oiwa
  • Run
    • poetry shell && poetry install
    • python main.py
  • Build
    • docker buildx build --platform linux/amd64,linux/arm64 --load -t oiwa:<version> .
  • Run a docker container from the built image
    • docker run -d --name oiwa -e BOT_TOKEN=you_bot_token oiwa
Logo was designed by dtafalonso - deviantart