inc\classes\Chat.php
File with Chat class
No additional classes/funtions
- Author
- Sergey Dilong
- License
- GPL-2.0
- Package
- Temply-Account\Objects
\Chat
Package: Temply-Account\Objects
Parameters
Returns
Throws
Details
Parameters
Throws
Parameters
Throws
Details
Chat object
Controlls participants, chat settings, creates new chats, etc.
- Author
- Sergey Dilong
- License
- GPL-2.0
Constants
Properties
Methods

Create(array $q, array $o = array()) : booleanCreates new chat
Creates new chat in DB
| Name | Type | Description |
|---|---|---|
| $q | array | Creation info |
| $o | array | Options |
| Type | Description |
|---|---|
| boolean |
| Exception | Description |
|---|---|
| \apiException | * [601] Incorrect creation data |

Init(integer $q, array $o = array()) : voidGenerate Chat instance
Gets info about chat
| Name | Type | Description |
|---|---|---|
| $q | integer | Chat ID |
| $o | array | Options |
| Exception | Description |
|---|---|
| \apiException | * [401] Access denied * [600] Incorrect input data |

__construct(array | integer $q, array $o = array()) : voidConstruct Chat
Creates new Chat object instance (Router)
| Name | Type | Description |
|---|---|---|
| $q | array | integer | Query |
| $o | array | Options
|
| Exception | Description |
|---|---|
| \apiException | * [401] Access denied * [600] Incorrect input data * [601] Incorrect chat creation data |