Hello. I am curious how do platforms that support hosting multiple

bots organize storing of their Telegram data ? Do they duplicate data about users, groups, chats, messages for each bot, or they allow bots to share some common data ?
Does anybody have any insights ? :)

5 ответов

13 просмотров

would he smart to have two central tables for users and chats, and then just foreign key them in the bot specific bots own tables

Andrey- Автор вопроса
⟨ Simon | Schürrle ⟩
would he smart to have two central tables for user...

I am asking because theoretically BotAPI updates can come delayed, and if multiple bots share same data that is synced with the updates, they can interfere with each other in those cases

Andrey
I am asking because theoretically BotAPI updates c...

well your database should support locks for that reason

Andrey- Автор вопроса

Bot A connected to a normal telegram server, bot B to a slow server, so they become out of sync

Похожие вопросы

Карта сайта