Closed blogaster closed 7 years ago
Take a look at ConversationDB.php
to see how you could extend the DB.
Of course you could also use DB::getPdo()
to get a PDO object anywhere in your code after initialising the Telegram object, that you can then use to execute any SQL you'd like.
Thank you I finded B::getPdo() in other issue and use success it!
Can you tell me how to connect the administrator commands?
Have a look in the readme: https://github.com/php-telegram-bot/core#admin-commands
I'll close here as this is a different topic. Feel free to reach out on telegram: @noplanman
Hi! Can I make custom table in DB and insert my data? I try
But isDbConnected() always returns false enableMySql is set