1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2025-04-15 11:56:36 +02:00

49 lines
939 B
Plaintext
Raw Normal View History

2024-10-15 10:50:56 +03:00
---
2024-10-15 10:16:04 +03:00
sidebar_position: 8
---
2024-10-15 10:50:56 +03:00
import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';
2024-10-15 10:16:04 +03:00
# Get picture block
Make picture block for SendMessage method
`Function GetPictureBlock(Val Name, Val URL) Export`
2024-10-15 15:15:47 +03:00
| Parameter | CLI option | Type | Required | Description |
|-|-|-|-|-|
| Name | --title | String | ✔ | Picture name |
| URL | --url | String | ✔ | URL of sending picture |
2024-10-15 10:16:04 +03:00
Returns: Structure - PictureBlock
<br/>
:::tip
Blocks at API documentation: [Link](https://dev.1c-bitrix.ru/learning/course/?COURSE_ID=93&CHAPTER_ID=07867)
:::
<br/>
```bsl title="Code example"
Name = "Image";
URL = "https://api.athenaeum.digital/test_data/picture.jpg";
Result = OPI_Bitrix24.GetPictureBlock(Name, URL);
```
```json title="Result"
{
"IMAGE": {
"NAME": "Image",
"LINK": "https://github.com/Bayselonarrend/OpenIntegrations/raw/main/service/test_data/picture.jpg"
}
}
```