You've already forked OpenIntegrations
mirror of
https://github.com/Bayselonarrend/OpenIntegrations.git
synced 2025-11-06 08:49:29 +02:00
Правки доков
This commit is contained in:
@@ -6,12 +6,10 @@ sidebar_position: 7
|
||||
Returns a keyboard structure for messages
|
||||
|
||||
|
||||
|
||||
|
||||
<br/>
|
||||
|
||||
|
||||
*Function CreateKeyboardFromArrayButton(Val ButtonArray, Val ButtonColor = "#2db9b9") Export*
|
||||
`Function CreateKeyboardFromArrayButton(Val ButtonArray, Val ButtonColor = "#2db9b9") Export`
|
||||
|
||||
| Parameter | CLI option | Type | Destination |
|
||||
|-|-|-|-|
|
||||
@@ -23,6 +21,9 @@ sidebar_position: 7
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
```bsl title="Code example"
|
||||
|
||||
ButtonArray = New Array;
|
||||
|
||||
@@ -6,12 +6,10 @@ sidebar_position: 4
|
||||
Sends a contact with a phone number to a chat or channel
|
||||
|
||||
|
||||
|
||||
|
||||
<br/>
|
||||
|
||||
|
||||
*Function SendContact(Val Token, Val ContactName, Val PhoneNumber, Val UserID, Val SendingToChannel) Export*
|
||||
`Function SendContact(Val Token, Val ContactName, Val PhoneNumber, Val UserID, Val SendingToChannel) Export`
|
||||
|
||||
| Parameter | CLI option | Type | Destination |
|
||||
|-|-|-|-|
|
||||
@@ -25,6 +23,9 @@ sidebar_position: 4
|
||||
Returns: Map Of KeyAndValue - serialized JSON response from Viber
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
```bsl title="Code example"
|
||||
|
||||
BotToken = "523b5b25ed27e6ec-111111111111111-2222222222222222";
|
||||
|
||||
@@ -6,12 +6,10 @@ sidebar_position: 3
|
||||
Sends a file (document) to a chat or channel
|
||||
|
||||
|
||||
|
||||
|
||||
<br/>
|
||||
|
||||
|
||||
*Function SendFile(Val Token, Val URL, Val UserID, Val SendingToChannel, Val Extension, Val Size = "") Export*
|
||||
`Function SendFile(Val Token, Val URL, Val UserID, Val SendingToChannel, Val Extension, Val Size = "") Export`
|
||||
|
||||
| Parameter | CLI option | Type | Destination |
|
||||
|-|-|-|-|
|
||||
@@ -26,6 +24,9 @@ sidebar_position: 3
|
||||
Returns: Map Of KeyAndValue - serialized JSON response from Viber
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
```bsl title="Code example"
|
||||
|
||||
ChannelToken = "523b58ba82afffaa-111111111111111-2222222222222222";
|
||||
|
||||
@@ -6,12 +6,10 @@ sidebar_position: 2
|
||||
Sends an image to a chat or channel
|
||||
|
||||
|
||||
|
||||
|
||||
<br/>
|
||||
|
||||
|
||||
*Function SendImage(Val Token, Val URL, Val UserID, Val SendingToChannel, Val Description = "") Export*
|
||||
`Function SendImage(Val Token, Val URL, Val UserID, Val SendingToChannel, Val Description = "") Export`
|
||||
|
||||
| Parameter | CLI option | Type | Destination |
|
||||
|-|-|-|-|
|
||||
@@ -25,6 +23,9 @@ sidebar_position: 2
|
||||
Returns: Map Of KeyAndValue - serialized JSON response from Viber
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
```bsl title="Code example"
|
||||
|
||||
ChannelToken = "523b58ba82afffaa-111111111111111-2222222222222222";
|
||||
|
||||
@@ -6,12 +6,10 @@ sidebar_position: 6
|
||||
Sends a URL with a preview to a chat or channel
|
||||
|
||||
|
||||
|
||||
|
||||
<br/>
|
||||
|
||||
|
||||
*Function SendLink(Val Token, Val URL, Val UserID, Val SendingToChannel) Export*
|
||||
`Function SendLink(Val Token, Val URL, Val UserID, Val SendingToChannel) Export`
|
||||
|
||||
| Parameter | CLI option | Type | Destination |
|
||||
|-|-|-|-|
|
||||
@@ -24,6 +22,9 @@ sidebar_position: 6
|
||||
Returns: Map Of KeyAndValue - serialized JSON response from Viber
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
```bsl title="Code example"
|
||||
|
||||
BotToken = "523b5b25ed27e6ec-111111111111111-2222222222222222";
|
||||
|
||||
@@ -6,12 +6,10 @@ sidebar_position: 5
|
||||
Sends geographic coordinates to a chat or channel
|
||||
|
||||
|
||||
|
||||
|
||||
<br/>
|
||||
|
||||
|
||||
*Function SendLocation(Val Token, Val Latitude, Val Longitude, Val UserID, Val SendingToChannel) Export*
|
||||
`Function SendLocation(Val Token, Val Latitude, Val Longitude, Val UserID, Val SendingToChannel) Export`
|
||||
|
||||
| Parameter | CLI option | Type | Destination |
|
||||
|-|-|-|-|
|
||||
@@ -25,6 +23,9 @@ sidebar_position: 5
|
||||
Returns: Map Of KeyAndValue - serialized JSON response from Viber
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
```bsl title="Code example"
|
||||
|
||||
BotToken = "523b5b25ed27e6ec-111111111111111-2222222222222222";
|
||||
|
||||
@@ -6,12 +6,10 @@ sidebar_position: 1
|
||||
Sends a text message to a chat or channel
|
||||
|
||||
|
||||
|
||||
|
||||
<br/>
|
||||
|
||||
|
||||
*Function SendTextMessage(Val Token, Val Text, Val UserID, Val SendingToChannel, Val Keyboard = "") Export*
|
||||
`Function SendTextMessage(Val Token, Val Text, Val UserID, Val SendingToChannel, Val Keyboard = "") Export`
|
||||
|
||||
| Parameter | CLI option | Type | Destination |
|
||||
|-|-|-|-|
|
||||
@@ -25,6 +23,9 @@ sidebar_position: 1
|
||||
Returns: Map Of KeyAndValue - serialized JSON response from Viber
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
```bsl title="Code example"
|
||||
|
||||
BotToken = "523b5b25ed27e6ec-111111111111111-2222222222222222";
|
||||
|
||||
@@ -6,12 +6,10 @@ sidebar_position: 2
|
||||
Here you can get the channel's user IDs. Bot IDs need to be obtained from the Webhook arrivals The user ID from channel information is not suitable for sending messages through the bot - they are different
|
||||
|
||||
|
||||
|
||||
|
||||
<br/>
|
||||
|
||||
|
||||
*Function GetChannelInformation(Val Token) Export*
|
||||
`Function GetChannelInformation(Val Token) Export`
|
||||
|
||||
| Parameter | CLI option | Type | Destination |
|
||||
|-|-|-|-|
|
||||
@@ -21,6 +19,9 @@ Here you can get the channel's user IDs. Bot IDs need to be obtained from the We
|
||||
Returns: Map Of KeyAndValue - serialized JSON response from Viber
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
```bsl title="Code example"
|
||||
|
||||
Response = OPI_Viber.GetChannelInformation(ChannelToken); //Map
|
||||
|
||||
@@ -6,12 +6,10 @@ sidebar_position: 4
|
||||
Gets the status of a user or multiple users by ID
|
||||
|
||||
|
||||
|
||||
|
||||
<br/>
|
||||
|
||||
|
||||
*Function GetOnlineUsers(Val Token, Val UserIDs) Export*
|
||||
`Function GetOnlineUsers(Val Token, Val UserIDs) Export`
|
||||
|
||||
| Parameter | CLI option | Type | Destination |
|
||||
|-|-|-|-|
|
||||
@@ -22,6 +20,9 @@ sidebar_position: 4
|
||||
Returns: Map Of KeyAndValue - serialized JSON response from Viber
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
```bsl title="Code example"
|
||||
|
||||
Response = OPI_Viber.GetOnlineUsers(Token, UserID); //Map
|
||||
|
||||
@@ -6,12 +6,10 @@ sidebar_position: 3
|
||||
Gets user information by ID
|
||||
|
||||
|
||||
|
||||
|
||||
<br/>
|
||||
|
||||
|
||||
*Function GetUserData(Val Token, Val UserID) Export*
|
||||
`Function GetUserData(Val Token, Val UserID) Export`
|
||||
|
||||
| Parameter | CLI option | Type | Destination |
|
||||
|-|-|-|-|
|
||||
@@ -22,6 +20,9 @@ sidebar_position: 3
|
||||
Returns: Map Of KeyAndValue - serialized JSON response from Viber
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
```bsl title="Code example"
|
||||
|
||||
Response = OPI_Viber.GetUserData(Token, UserID); //Map
|
||||
|
||||
@@ -6,12 +6,10 @@ sidebar_position: 1
|
||||
IMPORTANT: Setting up Webhook is mandatory according to Viber rules. You need to have a free URL for this., which will return 200 and a genuine SSL certificate. If there is a certificate and the database is published on the server - you can use an HTTP service. Information about new messages will also be sent there Viber periodically knocks on the Webhook address, so if it is inactive, everything will stop working
|
||||
|
||||
|
||||
|
||||
|
||||
<br/>
|
||||
|
||||
|
||||
*Function SetWebhook(Val Token, Val URL) Export*
|
||||
`Function SetWebhook(Val Token, Val URL) Export`
|
||||
|
||||
| Parameter | CLI option | Type | Destination |
|
||||
|-|-|-|-|
|
||||
@@ -22,6 +20,9 @@ IMPORTANT: Setting up Webhook is mandatory according to Viber rules. You need to
|
||||
Returns: Map Of KeyAndValue - serialized JSON response from Viber
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
```bsl title="Code example"
|
||||
|
||||
Response = OPI_Viber.SetWebhook(Token, "https://api.athenaeum.digital/opi/hs/viber"); //Map
|
||||
|
||||
Reference in New Issue
Block a user