2024-08-13 12:24:12 +02:00
|
|
|
---
|
|
|
|
sidebar_position: 8
|
|
|
|
---
|
|
|
|
|
|
|
|
# Get picture block
|
|
|
|
Make picture block for SendMessage method
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
`Function GetPictureBlock(Val Name, Val URL) Export`
|
|
|
|
|
2024-08-13 14:52:26 +02:00
|
|
|
| Parameter | CLI option | Type | Description |
|
|
|
|
|-|-|-|-|
|
|
|
|
| Name | --title | String | Picture name |
|
|
|
|
| URL | --url | String | URL of sending picture |
|
2024-08-13 12:24:12 +02:00
|
|
|
|
2024-08-13 14:52:26 +02:00
|
|
|
|
|
|
|
Returns: Structure - PictureBlock
|
2024-08-13 12:24:12 +02:00
|
|
|
|
|
|
|
<br/>
|
|
|
|
|
|
|
|
:::tip
|
|
|
|
Blocks at API documentation: [Link](https://dev.1c-bitrix.ru/learning/course/?COURSE_ID=93&CHAPTER_ID=07867)
|
|
|
|
:::
|
|
|
|
<br/>
|
|
|
|
|
|
|
|
|
2024-08-13 14:52:26 +02:00
|
|
|
```bsl title="Code example"
|
|
|
|
|
|
|
|
```
|
|
|
|
|
2024-08-13 12:24:12 +02:00
|
|
|
|
|
|
|
|
|
|
|
```sh title="CLI command example"
|
2024-08-13 14:52:26 +02:00
|
|
|
|
|
|
|
oint bitrix24 GetPictureBlock --title %title% --url %url%
|
2024-08-13 12:24:12 +02:00
|
|
|
|
|
|
|
```
|
|
|
|
|
2024-08-13 14:52:26 +02:00
|
|
|
```json title="Result"
|
2024-08-13 12:24:12 +02:00
|
|
|
|
2024-08-13 14:52:26 +02:00
|
|
|
```
|