An open API service indexing awesome lists of open source software.

https://github.com/defp/telegram-incoming-webhooks

Incoming Webhooks are a simple way to post messages from external sources into Telegram Like slack
https://github.com/defp/telegram-incoming-webhooks

elixir-lang sentry-plugin telegram telegram-bot telegram-bot-api webhooks

Last synced: 4 months ago
JSON representation

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

Awesome Lists containing this project

README

          

# 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

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

docker

```bash
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

![](https://ws2.sinaimg.cn/large/006tNc79gy1fqpexvlg1sj30m207wq3m.jpg)

## links

* https://github.com/zhyu/nadia
* https://hexdocs.pm/nadia/