PhpBotFramework
2.0.2
A framework for Telegram Bots' APIs.
|
Use getUpdates saving and getting offset in Redis and database. More...
Public Member Functions | |
getUpdates (int $offset=0, int $limit=100, int $timeout=60) | |
getUpdatesRedis (int $limit=100, int $timeout=60, string $offset_key='offset') | |
Get updates received by the bot, and use Redis to save and get the last offset. More... | |
getUpdatesDatabase (int $limit=100, int $timeout=0, string $table_name='telegram', string $column_name='bot_offset') | |
Get updates received by the bot, using the SQL database to store and get the last offset. More... | |
Protected Member Functions | |
initCommands () | |
int | getUpdateOffsetRedis (string $offset_key) |
int | getUpdateOffsetDatabase (string $table_name, string $column_name) |
Use getUpdates saving and getting offset in Redis and database.