\Message

Messages Object

Sending, getting, modifying, etc.

Summary

Methods
Properties
Constants
__construct()
get()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
InitById()
$data
N/A

Properties

$data

$data : array

Type

array — stored Message info

Methods

__construct()

__construct(  $a, array  $o = array()) : void

Construct

Create new Message object

Parameters

$a
array $o

Options

Throws

\apiException
  • [400] Incorrect input data
  • [401] Incorrect try to access
  • [501] Incorrect message access key
  • [502] Access key refs not to a message

get()

get() : boolean|array

Get Message data

All requested info about message

Returns

boolean|array —

If === false - request failed

InitById()

InitById(integer  $a, array  $o = array()) : void

Init Message

Get message data by ID

Parameters

integer $a

Message ID

array $o

Options

  • ACCESS_KEY [string] - Access key to get a message
  • CHAT_CLASS [bool] - Get message chat as Chat object

Throws

\apiException
  • [401] Incorrect try to access
  • [501] Incorrect message access key
  • [502] Access key refs not to a message