PhpBotFramework  2.0.2
A framework for Telegram Bots' APIs.
Public Member Functions | Public Attributes | List of all members
PhpBotFramework\Utilities\BotState Class Reference

Handle users status. More...

Public Member Functions

 __construct (BasicBot &$bot)
 
int getStatus (int $default_status=-1)
 Get current user status from Redis and set it in status variable. More...
 
 setStatus (int $status)
 Set the status of the bot in both Redis and $status. More...
 

Public Attributes

 $status
 Current status of the user.
 

Detailed Description

Handle users status.


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