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 ? :)
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
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
well your database should support locks for that reason
Bot A connected to a normal telegram server, bot B to a slow server, so they become out of sync
that's gonna be a few ms at most
Обсуждают сегодня