Skip to main content

Get picture block

Make picture block for SendMessage method

Function GetPictureBlock(Val Name, Val URL) Export

ParameterCLI optionTypeRequiredDescription
Name--titleStringPicture name
URL--urlStringURL of sending picture

Returns: Structure - PictureBlock


tip

Blocks at API documentation: Link


1C:Enterprise/OneScript code example
    Name = "Image";
URL = "https://api.athenaeum.digital/test_data/picture.jpg";

Result = OPI_Bitrix24.GetPictureBlock(Name, URL);
    oint bitrix24 GetPictureBlock \
--title "Image" \
--url "https://github.com/Bayselonarrend/OpenIntegrations/raw/main/service/test_data/picture.jpg"
Result
{
"IMAGE": {
"NAME": "Image",
"LINK": "https://github.com/Bayselonarrend/OpenIntegrations/raw/main/service/test_data/picture.jpg"
}
}