0
mirror of https://github.com/valentineus/iii-module.git synced 2025-05-02 02:21:26 +03:00
iii-module/README.md
2016-09-21 18:52:37 +04:00

16 lines
505 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Класс для работы с ботом «А-я-яй»
## Инициализация бота:
```
define('BOT_TOKEN', $token);
$bot = new Bot(BOT_TOKEN);
// token - Токен бота, например: «109cd867-0ef3-4473-af71-7543a9b2fccd»
```
## Инициализация сессии:
```
// Создание новой сессии:
$session = $bot->session();
// Инициализация уже имеющийся сесии:
$session = $bot->session($session_id);
```