php-telegram-bot / core

PHP Telegram Bot based on the official Telegram Bot API
MIT License
3.89k stars 953 forks source link

/chats * with multiple bots #1438

Open sascha-hendel opened 10 months ago

sascha-hendel commented 10 months ago

I run two different bots on my machine with php-telegram-bot. I noticed, that on invoking /chats * the list of users is always summarized from both bots :( I had a look on the mysql tables. It looks like all of the data does not have any reference to the specific bot. Is that true or do I miss something? If data is not bot specific, is it possible to use separate databases for every bot (or another way to make data bot specific)?

Hitmare commented 10 months ago

i think its recommended to use a separate database for each bot. you just need to create a second database and import the structure into the 2nd database.