Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/geekdada/telegram-incoming-webhook

Send messages to a Telegram chat easily
https://github.com/geekdada/telegram-incoming-webhook

bot telegram webhook

Last synced: about 2 months ago
JSON representation

Send messages to a Telegram chat easily

Awesome Lists containing this project

README

        

# telegram-incoming-webhook

Send messages to a Telegram chat easily.

You can use `tiw.deno.dev` directly, which **does't store your token or message**. You can also fork this project and deploy to [Deno Deploy](<[url](https://deno.com/deploy)>) yourself, it's free.

## Usage

### Send JSON payload

```
$ curl -X POST -H "Content-Type: application/json" -d '{"text":"Hello, world!"}' https://tiw.deno.dev//
```

The payload will be formatted and sent to the designated chat.

### Send normal message

```
$ curl -X POST -d 'Message' https://tiw.deno.dev//
```

### Send markdown message

```
$ curl -X POST https://tiw.deno.dev//?parse_mode=MarkdownV2 -d $'*bold \\*text*
_italic \\*text_
'
```

## How to get the `chatId`

```
$ curl https://tiw.deno.dev//chats
```

If you can't see any `chatId`, you probably haven't added the bot to the chat or talked to the bot yet.

## Privacy

## License

[MIT License](/LICENSE)