Simple bot to get the external ip of the machine where it runs
-
Build the image
npm run docker_build
-
Run the container
docker create \
--name=telegram-bot-ip \
-e BOT_TOKEN=XXXXXXXXXXXXXXXXXXXXXXXXXXXX \
-e USER_ID=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX \
--restart unless-stopped \
romancc/telegram-bot-ip
Where BOT_TOKEN
, is your telegram bot tokenand USER_ID
is your telegram user id
- Send
/ip
to the bot, and receive the info