28 lines
513 B
Markdown
28 lines
513 B
Markdown
### Telegram
|
|
**Webhook:** Use Generic Destination.
|
|
|
|
To be able to send photo, you need Server URL which can be accessed from web
|
|
|
|
Webhook URL:
|
|
```
|
|
# Message
|
|
https://api.telegram.org/bot<id>:<token>/sendMessage
|
|
|
|
# Photo
|
|
https://api.telegram.org/bot<id>:<token>/sendPhoto
|
|
```
|
|
To get the chatid:
|
|
- start a chat with your bot
|
|
- add `@get_id_bot`
|
|
- issue the `/my_id` command
|
|
|
|
|
|
After adding the template add a request header as follows:
|
|
```
|
|
Key:
|
|
Content-Type
|
|
|
|
Value:
|
|
application/json
|
|
```
|