PhpBotFramework  2.0.2
A framework for Telegram Bots' APIs.
Public Member Functions | Public Attributes | Protected Member Functions | List of all members
PhpBotFramework\Database\User Class Reference
Inheritance diagram for PhpBotFramework\Database\User:
PhpBotFramework\Database\Database

Public Member Functions

bool addUser ($chat_id)
 Add a user to the database. More...
 
int broadcastMessage (string $text, string $reply_markup=null, string $parse_mode='HTML', bool $disable_web_preview=true, bool $disable_notification=false)
 Send a message to every user available on the database. More...
 

Public Attributes

 $pdo
 
 $user_table = 'User'
 Table contaning bot users data in the SQL database.
 
 $id_column = 'chat_id'
 Name of the column that represents the user id in the sql database.
 

Protected Member Functions

 sanitizeUserTable ()
 

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