1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2025-01-26 05:37:27 +02:00
Vitaly the Alpaca (bot) 217c3b0626 Main build (Jenkins)
2024-09-29 21:40:58 +03:00

1.0 KiB

sidebar_position
2

Get channel information

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

Function GetChannelInformation(Val Token) Export

Parameter CLI option Type Description
Token --token String Token

Returns: Map Of KeyAndValue - serialized JSON response from Viber


    Token  = "523b58ba82afffaa-7ef3b426...";
    Result = OPI_Viber.GetChannelInformation(Token);
    
  oint viber GetChannelInformation --token %token%

{
 "status": 0,
 "status_message": "ok",
 "id": "pa:5925427292815753130",
 "chat_hostname": "SN-CHAT-03_",
 "name": "1C Test",
 "members": [
  {
   "id": "tMNGhftyUPrB3r1lD+bT4g==",
   "name": "John",
   "role": "superadmin"
  }
 ]
}