Viber extends Base
Class Viber
Table of Contents
Constants
- REF_PREFIX = 'btrx'
- The prefix for start parameter.
Methods
- __construct() : mixed
- Connector constructor.
- deleteMessageProcessing() : array<string|int, mixed>
- getUserByUserCode() : Result
- isEnableSendSystemMessage() : bool
- markMessageUndelivered() : void
- Updates message with undelivered mark.
- preparationNewUserFields() : array<string|int, mixed>
- Preparation of new user fields before saving or adding.
- preparationUserFields() : array<string|int, mixed>
- Preparation of user fields before saving or adding.
- processingInputCommand() : Result
- processingInputCommandKeyboard() : Result
- processingInputDelMessage() : Result
- processingInputNewMessage() : Result
- processingInputNewPost() : Result
- processingInputSessionVote() : Result
- processingInputTypingStatus() : Result
- processingInputUpdateMessage() : Result
- processingInputUpdatePost() : Result
- processingInputWelcomeMessage() : Result
- receivedError() : bool
- removeMessageDeliveryMark() : void
- Unsets waiting delidery mark.
- saveFile() : false|int|string
- Save file
- sendMessageProcessing() : array<string|int, mixed>
- updateMessageProcessing() : array<string|int, mixed>
Constants
REF_PREFIX
The prefix for start parameter.
public
mixed
REF_PREFIX
= 'btrx'
Methods
__construct()
Connector constructor.
public
__construct(mixed $idConnector) : mixed
Parameters
- $idConnector : mixed
deleteMessageProcessing()
public
deleteMessageProcessing(array<string|int, mixed> $message, mixed $line) : array<string|int, mixed>
Parameters
- $message : array<string|int, mixed>
- $line : mixed
Return values
array<string|int, mixed>getUserByUserCode()
public
getUserByUserCode(array<string|int, mixed> $user) : Result
Parameters
- $user : array<string|int, mixed>
Return values
ResultisEnableSendSystemMessage()
public
isEnableSendSystemMessage(Session $session) : bool
Parameters
- $session : Session
Return values
boolmarkMessageUndelivered()
Updates message with undelivered mark.
public
markMessageUndelivered(int $messageId) : void
Parameters
- $messageId : int
-
Message Id.
preparationNewUserFields()
Preparation of new user fields before saving or adding.
public
preparationNewUserFields(array<string|int, mixed> $user) : array<string|int, mixed>
Parameters
- $user : array<string|int, mixed>
-
An array describing the user.
Return values
array<string|int, mixed> —Given the right format array description user.
preparationUserFields()
Preparation of user fields before saving or adding.
public
preparationUserFields(array<string|int, mixed> $user[, mixed $userId = 0 ]) : array<string|int, mixed>
Parameters
- $user : array<string|int, mixed>
-
An array describing the user.
- $userId : mixed = 0
Return values
array<string|int, mixed> —Given the right format array description user.
processingInputCommand()
public
processingInputCommand(string $command, array<string|int, mixed> $message, int $line) : Result
Parameters
- $command : string
- $message : array<string|int, mixed>
- $line : int
Return values
ResultprocessingInputCommandKeyboard()
public
processingInputCommandKeyboard(mixed $params, mixed $line) : Result
Parameters
- $params : mixed
- $line : mixed
Return values
ResultprocessingInputDelMessage()
public
processingInputDelMessage(mixed $message, mixed $line) : Result
Parameters
- $message : mixed
- $line : mixed
Return values
ResultprocessingInputNewMessage()
public
processingInputNewMessage(mixed $message, mixed $line) : Result
Parameters
- $message : mixed
- $line : mixed
Return values
ResultprocessingInputNewPost()
public
processingInputNewPost(mixed $message, mixed $line) : Result
Parameters
- $message : mixed
- $line : mixed
Return values
ResultprocessingInputSessionVote()
public
processingInputSessionVote(mixed $params, mixed $line) : Result
Parameters
- $params : mixed
- $line : mixed
Return values
ResultprocessingInputTypingStatus()
public
processingInputTypingStatus(mixed $message, mixed $line) : Result
Parameters
- $message : mixed
- $line : mixed
Return values
ResultprocessingInputUpdateMessage()
public
processingInputUpdateMessage(mixed $message, mixed $line) : Result
Parameters
- $message : mixed
- $line : mixed
Return values
ResultprocessingInputUpdatePost()
public
processingInputUpdatePost(mixed $message, mixed $line) : Result
Parameters
- $message : mixed
- $line : mixed
Return values
ResultprocessingInputWelcomeMessage()
public
processingInputWelcomeMessage(array<string|int, mixed> $message, int $line) : Result
Parameters
- $message : array<string|int, mixed>
- $line : int
Return values
ResultreceivedError()
public
receivedError(mixed $paramsError) : bool
Parameters
- $paramsError : mixed
Tags
Return values
boolremoveMessageDeliveryMark()
Unsets waiting delidery mark.
public
removeMessageDeliveryMark(int $messageId, int $chatId) : void
Parameters
- $messageId : int
- $chatId : int
saveFile()
Save file
public
saveFile(mixed $file) : false|int|string
Parameters
- $file : mixed
Return values
false|int|stringsendMessageProcessing()
public
sendMessageProcessing(array<string|int, mixed> $message, mixed $line) : array<string|int, mixed>
Parameters
- $message : array<string|int, mixed>
- $line : mixed
Return values
array<string|int, mixed>updateMessageProcessing()
public
updateMessageProcessing(array<string|int, mixed> $message, mixed $line) : array<string|int, mixed>
Parameters
- $message : array<string|int, mixed>
- $line : mixed