PhpBotFramework  2.0.2
A framework for Telegram Bots' APIs.
Public Member Functions | Protected Member Functions | List of all members
PhpBotFramework\Database\LongPolling Class Reference

Use getUpdates saving and getting offset in Redis and database. More...

Inheritance diagram for PhpBotFramework\Database\LongPolling:
PhpBotFramework\Bot PhpBotFramework\Test\TestBot

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)
 

Detailed Description

Use getUpdates saving and getting offset in Redis and database.


The documentation for this class was generated from the following file: