mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-27 03:07:14 +00:00
commit
dcc17df8ee
@ -25,17 +25,8 @@ The quickest way to retrieve your `chat_id` is visiting [https://api.telegram.or
|
|||||||
The result set will include your chat ID as `id` in the `from` section:
|
The result set will include your chat ID as `id` in the `from` section:
|
||||||
|
|
||||||
```json
|
```json
|
||||||
{
|
{"ok":true,"result":[{"update_id":254199982,
|
||||||
"ok":true,
|
"message":{"message_id":27,"from":{"id":123456789,"first_name":"YOUR_FIRST_NAME YOUR_NICK_NAME","last_name":"YOUR_LAST_NAME","username":"YOUR_NICK_NAME"},"chat":{"id":123456789,"first_name":"YOUR_FIRST_NAME YOUR_NICK_NAME","last_name":"YOUR_LAST_NAME","username":"YOUR_NICK_NAME","type":"private"},"date":1678292650,"text":"test"}}]}
|
||||||
"result":[
|
|
||||||
{
|
|
||||||
"update_id":254199982,
|
|
||||||
"message":{
|
|
||||||
"message_id":201,
|
|
||||||
"from":{
|
|
||||||
"id":123456789,
|
|
||||||
"first_name":"Your first name",
|
|
||||||
...
|
|
||||||
```
|
```
|
||||||
|
|
||||||
Another way to get your chat ID directly is described below:
|
Another way to get your chat ID directly is described below:
|
||||||
@ -92,6 +83,27 @@ action:
|
|||||||
- **username** (*Optional*): Username for an URL which require HTTP basic authentication.
|
- **username** (*Optional*): Username for an URL which require HTTP basic authentication.
|
||||||
- **password** (*Optional*): Username for an URL which require HTTP basic authentication.
|
- **password** (*Optional*): Username for an URL which require HTTP basic authentication.
|
||||||
|
|
||||||
|
### {% linkable_title Document support %}
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
...
|
||||||
|
action:
|
||||||
|
service: notify.NOTIFIER_NAME
|
||||||
|
data:
|
||||||
|
title: Send a document
|
||||||
|
message: That's a example that sends a document.
|
||||||
|
data:
|
||||||
|
document:
|
||||||
|
file: /tmp/whatever.odf
|
||||||
|
caption: Picture Title xy
|
||||||
|
|
||||||
|
```
|
||||||
|
|
||||||
|
- **url** or **file** (*Required*): For local or remote path to an image.
|
||||||
|
- **caption** (*Optional*): The title of the image.
|
||||||
|
- **username** (*Optional*): Username for an URL which require HTTP basic authentication.
|
||||||
|
- **password** (*Optional*): Username for an URL which require HTTP basic authentication.
|
||||||
|
|
||||||
### {% linkable_title Location support %}
|
### {% linkable_title Location support %}
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
|
Loading…
x
Reference in New Issue
Block a user