global fix and update bot Api

This commit is contained in:
lendry
2026-06-26 13:01:52 +03:00
parent d3ea470d02
commit aa228d84eb
29 changed files with 980 additions and 221 deletions

View File

@@ -438,6 +438,9 @@ model ChatMessage {
metadata Json?
storageKey String?
mimeType String?
isPinned Boolean @default(false)
pinnedAt DateTime?
pinnedById String?
createdAt DateTime @default(now())
editedAt DateTime?
deletedAt DateTime?
@@ -446,6 +449,7 @@ model ChatMessage {
poll ChatPoll?
@@index([roomId, createdAt])
@@index([roomId, isPinned, pinnedAt])
}
model ChatPoll {
@@ -603,6 +607,8 @@ model BotMessage {
text String?
mediaUrl String?
payload Json?
isPinned Boolean @default(false)
pinnedAt DateTime?
createdAt DateTime @default(now())
editedAt DateTime?
bot Bot @relation(fields: [botId], references: [id], onDelete: Cascade)
@@ -610,6 +616,7 @@ model BotMessage {
@@unique([botId, telegramMsgId])
@@index([botChatId])
@@index([botChatId, isPinned, pinnedAt])
}
model BotInboundMessage {