Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: 3 months ago
JSON representation
Send messages to a Telegram chat easily
- Host: GitHub
- URL: https://github.com/geekdada/telegram-incoming-webhook
- Owner: geekdada
- License: mit
- Created: 2022-06-12T12:06:02.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2024-01-08T20:36:57.000Z (about 1 year ago)
- Last Synced: 2024-08-03T14:10:22.442Z (5 months ago)
- Topics: bot, telegram, webhook
- Language: TypeScript
- Homepage:
- Size: 19.5 KB
- Stars: 17
- Watchers: 2
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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)