The main purpose of this project is to provide an ability to receive and send sms into the telegram account
The application can connect to SMPP host, receive incoming SMS and send it to Telegram Chat.
Before you start you need working SMPP server and created Telegram Bot which will send you incoming SMS.
- ChannelId - SMPP Channel
- Host - IP address or DNS name of SMPP Server
- Port - port of the SMPP Server
- SystemId - login
- Password - password
- Name - any string
- Token - the token from @BotFather
- Owner - account name of creator without '@'
- ChatId - chat id as signed long. It can be a private chat with the bot or any group where the bot was added.
- ThreadId - optional signed long id if threads are enabled in the current chat
In src folder
docker build -t smpp-2-telegram .
Then create compose yaml
version: "3.9"
name: "smpp-2-telegram"
services:
apphost:
container_name: smpp-2-telegram
image: smpp-2-telegram:latest
hostname: apphost
restart: unless-stopped
environment:
- SmppChannelConfiguration__ChannelId=1
- SmppChannelConfiguration__Host=localhost
- SmppChannelConfiguration__Port=1234
- SmppChannelConfiguration__SystemId=login
- SmppChannelConfiguration__Password=password
- TelegramBotConfiguration__Name=incoming sms
- TelegramBotConfiguration__Token=Token:Token
- TelegramBotConfiguration__Owner=owner
- TelegramConversationConfiguration__ChatId=123456
network_mode: "host"
Then up the compose
docker compose up -d