Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/amr3k/oiwa
- Owner: amr3k
- License: gpl-3.0
- Created: 2021-05-30T15:05:02.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-07-09T19:29:48.000Z (4 months ago)
- Last Synced: 2024-07-10T23:55:28.994Z (4 months ago)
- Topics: docker, docker-compose, fastapi, python, python-telegram-bot, self-hosted, telegram-bot
- Language: Python
- Homepage: https://t.me/OiWA_bot
- Size: 252 KB
- Stars: 30
- Watchers: 2
- Forks: 14
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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)