Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/amr3k/oiwa

A simple Telegram bot that converts a phone number to a direct whatsapp chat link
https://github.com/amr3k/oiwa

docker docker-compose fastapi python python-telegram-bot self-hosted telegram-bot

Last synced: about 2 hours ago
JSON representation

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

Awesome Lists containing this project

README

        

# Open in WhatsApp

![LICENSE](https://img.shields.io/github/license/amr3k/oiwa?style=flat&color=ff0000)
![GitHub issues](https://img.shields.io/github/issues/amr3k/oiwa?color=fdf629)
![GitHub code size in bytes](https://img.shields.io/github/languages/code-size/amr3k/oiwa?color=c4fff9&label=Repo%20size)
![Lines of code](https://img.shields.io/tokei/lines/github/amr3k/oiwa?color=e63977)
[![Hits-of-Code](https://hitsofcode.com/github/amr3k/oiwa?branch=main)](https://hitsofcode.com/github/amr3k/oiwa/view?branch=main)



> I was using a great [app](https://github.com/subhamtyagi/openinwa/) 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.

## [See it in action](https://t.me/OiWA_bot)

# 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

- [docker-compose](https://github.com/docker/compose)

### 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](https://python-poetry.org/) 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: .`
- 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](https://iconarchive.com/artist/dtafalonso.html) - [deviantart](https://www.deviantart.com/dtafalonso)