Skip to content

Latest commit

 

History

History
47 lines (29 loc) · 909 Bytes

README.md

File metadata and controls

47 lines (29 loc) · 909 Bytes

Telegram-incoming-webhooks

Incoming Webhooks are a simple way to post messages from external sources into Telegram

Like slack, https://api.slack.com/incoming-webhooks

usage

bot: https://telegram.me/IncomingWebhook_bot

command: /text

http request example

get

## Request (11)
curl "https://telegram-incoming-webhooks.herokuapp.com/incoming_text/123?text=helloword" \
     -H 'Content-Type: application/x-www-form-urlencoded; charset=utf-8' \
     --data-urlencode "text=helloworld"

deploy

build

MIX_ENV=prod mix release --verbose --env=prod

docker

docker build -t tg-webhooks .
docker run --restart=always -d -p 443:443 -v /etc/letsencrypt/:/etc/letsencrypt/ tg-webhooks:latest

deploy to heroku config example

links