1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2025-03-31 22:05:13 +02:00
Vitaly the Alpaca (bot) ad3d58d7df Main build (Jenkins)
2025-01-25 22:35:43 +03:00

47 lines
1.1 KiB
Plaintext
Vendored

---
sidebar_position: 15
---
import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';
# Replace message caption
Replaces text in a message with media attachments
`Function ReplaceMessageCaption(Val Token, Val ChatID, Val MessageID, Val Description) Export`
| Parameter | CLI option | Type | Required | Description |
|-|-|-|-|-|
| Token | --token | String | ✔ | Token |
| ChatID | --chat | String, Number | ✔ | Target chat ID |
| MessageID | --message | String, Number | ✔ | ID of message to delete |
| Description | --caption | String | ✔ | New message description |
Returns: Map Of KeyAndValue - serialized JSON response from Telegram
<br/>
:::tip
Method at API documentation: [editMessageCaption](https://core.telegram.org/bots/api#editmessagecaption)
:::
<br/>
```bsl title="1C:Enterprise/OneScript code example"
Token = "6129457865:AAFyzNYOAFbu...";
ChatID = "461699897";
MessageID = "11588";
Description = "New picture description";
Result = OPI_Telegram.ReplaceMessageCaption(Token, ChatID, MessageID, Description);
```