feat(worker): detect + persist per-channel forwarding permission

This commit is contained in:
2026-07-31 04:40:15 +02:00
parent 80d41ac78f
commit eda882dc90
2 changed files with 36 additions and 2 deletions
+7
View File
@@ -639,6 +639,13 @@ export async function setChannelForum(channelId: string, isForum: boolean) {
});
}
export async function setChannelAllowsForwarding(channelId: string, allowsForwarding: boolean) {
return db.telegramChannel.update({
where: { id: channelId },
data: { allowsForwarding },
});
}
export async function getTopicProgress(mappingId: string) {
return db.topicProgress.findMany({
where: { accountChannelMapId: mappingId },