mirror of
https://github.com/FranP-code/Baileys.git
synced 2025-10-13 00:32:22 +00:00
fix: use string values in business catalog
This commit is contained in:
@@ -32,17 +32,17 @@ export const makeBusinessSocket = (config: SocketConfig) => {
|
|||||||
{
|
{
|
||||||
tag: 'limit',
|
tag: 'limit',
|
||||||
attrs: { },
|
attrs: { },
|
||||||
content: Buffer.from([ 49, 48 ])
|
content: Buffer.from(limit.toString())
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
tag: 'width',
|
tag: 'width',
|
||||||
attrs: { },
|
attrs: { },
|
||||||
content: Buffer.from([ 49, 48, 48 ])
|
content: Buffer.from('100')
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
tag: 'height',
|
tag: 'height',
|
||||||
attrs: { },
|
attrs: { },
|
||||||
content: Buffer.from([ 49, 48, 48 ])
|
content: Buffer.from('100')
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
@@ -71,22 +71,22 @@ export const makeBusinessSocket = (config: SocketConfig) => {
|
|||||||
{
|
{
|
||||||
tag: 'collection_limit',
|
tag: 'collection_limit',
|
||||||
attrs: { },
|
attrs: { },
|
||||||
content: Buffer.from([ 49, 48 ])
|
content: Buffer.from(limit.toString())
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
tag: 'item_limit',
|
tag: 'item_limit',
|
||||||
attrs: { },
|
attrs: { },
|
||||||
content: Buffer.from([ limit ])
|
content: Buffer.from(limit.toString())
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
tag: 'width',
|
tag: 'width',
|
||||||
attrs: { },
|
attrs: { },
|
||||||
content: Buffer.from([ 49, 48, 48 ])
|
content: Buffer.from('100')
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
tag: 'height',
|
tag: 'height',
|
||||||
attrs: { },
|
attrs: { },
|
||||||
content: Buffer.from([ 49, 48, 48 ])
|
content: Buffer.from('100')
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user