fix: honor whatsapp mediaMaxMb (#505) (thanks @koala73)

This commit is contained in:
Peter Steinberger
2026-01-09 19:51:35 +01:00
parent 3026367c1b
commit 87f432880a
51 changed files with 89 additions and 4089 deletions

View File

@@ -788,6 +788,7 @@ export async function monitorWebProvider(
groupAllowFrom: account.groupAllowFrom,
groupPolicy: account.groupPolicy,
textChunkLimit: account.textChunkLimit,
mediaMaxMb: account.mediaMaxMb,
blockStreaming: account.blockStreaming,
groups: account.groups,
},
@@ -1305,6 +1306,7 @@ export async function monitorWebProvider(
verbose,
accountId: account.accountId,
authDir: account.authDir,
mediaMaxMb: account.mediaMaxMb,
onMessage: async (msg) => {
handledMessages += 1;
lastMessageAt = Date.now();