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

Public Member Functions

 __construct (BasicBot &$bot)
 
bool connect (array $params)
 Open a database connection using PDO. More...
 
- Public Member Functions inherited from PhpBotFramework\Database\User
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...
 

Static Public Member Functions

static array addDefaultValue (array $params)
 
static string getDns ($params)
 

Public Attributes

 $pdo
 
 $user_table = 'User'
 Table contaning bot users data in the SQL database.
 
- Public Attributes inherited from PhpBotFramework\Database\User
 $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 ()
 
- Protected Member Functions inherited from PhpBotFramework\Database\User
 sanitizeUserTable ()
 

Detailed Description

handler

Member Data Documentation

◆ $pdo

PhpBotFramework\Database\Database::$pdo

PDO connection to the database.


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