From 7e205f95a1891cdeab5ea0f05cff2b64b60b6c93 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sil=C3=A9n?= Date: Sat, 16 May 2026 20:02:47 +0300 Subject: [PATCH] Document MariaDB support in README --- README.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 4301dc4a..d377987f 100644 --- a/README.md +++ b/README.md @@ -201,7 +201,7 @@ The bot can handle updates with [**Webhook**](#webhook-installation) or [**getUp | ---- | :----: | :----: | | Description | Telegram sends the updates directly to your host | You have to fetch Telegram updates manually | | Host with https | Required | Not required | -| MySQL | Not required | ([Not](#getupdates-without-database)) Required | +| MySQL / MariaDB | Not required | ([Not](#getupdates-without-database)) Required | ## Using a custom Bot API server @@ -290,7 +290,7 @@ Edit *[unset.php]* with your bot credentials and execute it. ## getUpdates installation -For best performance, the MySQL database should be enabled for the `getUpdates` method! +For best performance, a MySQL or MariaDB database should be enabled for the `getUpdates` method! Create *[getUpdatesCLI.php]* with the following contents: ```php @@ -485,6 +485,8 @@ You can also broadcast a message to users, from the private chat with your bot. ### MySQL storage (Recommended) +MariaDB is supported via the same PDO `mysql` driver and `enableMySql()` setup (CI tests use a MariaDB image). + If you want to save messages/users/chats for further usage in commands, create a new database (`utf8mb4_unicode_520_ci`), import *[structure.sql]* and enable MySQL support BEFORE `handle()` method: ```php