@deathnaitsa/wa-api 2.1.0 → 2.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/WhatsAppClient.cjs +1 -1
- package/dist/WhatsAppClient.js +1 -1
- package/dist/auth/sqliteAuthState.cjs +1 -1
- package/dist/auth/sqliteAuthState.js +1 -1
- package/dist/config-helper.cjs +71 -1
- package/dist/config-helper.js +65 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/wa-api.config.cjs +197 -1
- package/dist/wa-api.config.js +197 -1
- package/package.json +1 -1
package/dist/wa-api.config.cjs
CHANGED
|
@@ -1 +1,197 @@
|
|
|
1
|
-
(function(_0x3ebc21,_0x2a9840){const _0xae327c={_0x34a40f:0x2cd,_0x24165d:0x2af,_0x2b41a6:0x554,_0x3cce44:0x556,_0x795414:0x535,_0x4d92bf:0x553,_0x211fb7:0x2be,_0x53efcc:0x2a5,_0x300fab:0x2bb,_0x2cb58d:0x282,_0x263639:0x29b,_0x1cacb3:0x2b7,_0x3031f5:0x27e,_0x64aec1:0x567,_0x3796c4:0x547,_0x600705:0x577,_0xeb8cdb:0x578,_0x5bc325:0x569,_0x5996f0:0x546,_0x8b9497:0x552,_0x197434:0x56b,_0x42adeb:0x54a,_0x54ec40:0x2ac,_0x42a6aa:0x29f,_0x39b0d6:0x55f,_0x2f7c67:0x575},_0x2add90={_0x4f2f92:0x391};function _0x63d8cf(_0x481057,_0x368aa5,_0x33cd53,_0xf644b2){return _0x393c(_0xf644b2-_0x2add90._0x4f2f92,_0x33cd53);}function _0x40618c(_0x3d8527,_0x3c8b8d,_0xd92147,_0x1c6fd6){return _0x393c(_0x3c8b8d-0xe1,_0xd92147);}const _0x6317e=_0x3ebc21();while(!![]){try{const _0x5b0b29=-parseInt(_0x40618c(0x2bf,0x2c8,_0xae327c._0x34a40f,_0xae327c._0x24165d))/(-0xa3f+-0xe41+0x82b*0x3)+parseInt(_0x63d8cf(_0xae327c._0x2b41a6,_0xae327c._0x3cce44,_0xae327c._0x795414,_0xae327c._0x4d92bf))/(-0x1*0x25e1+-0x1d9*0x9+0x1*0x3684)*(-parseInt(_0x40618c(_0xae327c._0x211fb7,_0xae327c._0x53efcc,_0xae327c._0x300fab,0x2a7))/(0x1*-0x1389+0x79*0x1a+0x742))+parseInt(_0x40618c(0x2b1,0x29e,_0xae327c._0x2cb58d,0x27e))/(-0xb6b*-0x3+-0x2147+-0xf6)*(parseInt(_0x40618c(0x2bb,_0xae327c._0x263639,_0xae327c._0x1cacb3,_0xae327c._0x3031f5))/(0xc7*-0x4+-0x83+0x3a4))+-parseInt(_0x63d8cf(_0xae327c._0x64aec1,0x565,0x533,_0xae327c._0x3796c4))/(0x24e*-0x3+-0x15+0x1*0x705)*(parseInt(_0x63d8cf(_0xae327c._0x600705,0x594,_0xae327c._0xeb8cdb,0x580))/(0x1490+-0xb2*0x31+0xd89))+-parseInt(_0x63d8cf(_0xae327c._0x64aec1,_0xae327c._0x5bc325,_0xae327c._0x5996f0,_0xae327c._0x8b9497))/(0x1edd*0x1+-0x1658+-0x87d)*(-parseInt(_0x63d8cf(_0xae327c._0x197434,0x552,0x545,_0xae327c._0x42adeb))/(0x1bc0+-0xbf7*-0x3+0x3*-0x1534))+-parseInt(_0x40618c(_0xae327c._0x54ec40,_0xae327c._0x42a6aa,_0xae327c._0x2cb58d,0x2be))/(0x1e2*-0x9+0x3c7+0xd35)+parseInt(_0x63d8cf(_0xae327c._0x39b0d6,0x575,_0xae327c._0x2f7c67,0x57f))/(-0x4ea*0x5+-0x6e6*-0x5+-0x9e1);if(_0x5b0b29===_0x2a9840)break;else _0x6317e['push'](_0x6317e['shift']());}catch(_0x2732cd){_0x6317e['push'](_0x6317e['shift']());}}}(_0x3592,0x2f8b5+0xe351*-0x9+0xa40f0));const _0x565ae5=(function(){let _0x556850=!![];return function(_0x229a37,_0x5bb686){const _0x45662a={_0x41cb72:0x37f},_0x2922f3=_0x556850?function(){function _0xdb5541(_0x1dc041,_0x370052,_0x4f8638,_0x420238){return _0x393c(_0x4f8638-0x1b7,_0x370052);}if(_0x5bb686){const _0x33a83b=_0x5bb686[_0xdb5541(0x372,0x36f,_0x45662a._0x41cb72,0x375)](_0x229a37,arguments);return _0x5bb686=null,_0x33a83b;}}:function(){};return _0x556850=![],_0x2922f3;};}()),_0x250e33=_0x565ae5(this,function(){const _0x24753e={_0x25679c:0x139,_0x3a7976:0x13c,_0x51cfb6:0x13e,_0x1d1d65:0x133,_0x5dc9fd:0xf2,_0x926047:0x10a,_0x470ea1:0x5c,_0x58354f:0x79,_0x11600d:0x38,_0x523a85:0x104,_0x149a0a:0xe8,_0x3b617c:0x123,_0xab8fc:0x101},_0x452bf1={_0xcec497:0xb6};function _0x14f46e(_0x592ecb,_0x251894,_0x3f7f6f,_0x110097){return _0x393c(_0x110097- -0x173,_0x3f7f6f);}function _0x2d62eb(_0x1bbb43,_0x16b29f,_0xc89af6,_0x52e42d){return _0x393c(_0x52e42d- -_0x452bf1._0xcec497,_0x16b29f);}return _0x250e33[_0x2d62eb(_0x24753e._0x25679c,_0x24753e._0x3a7976,_0x24753e._0x51cfb6,_0x24753e._0x1d1d65)]()[_0x2d62eb(_0x24753e._0x5dc9fd,0xe9,0x113,_0x24753e._0x926047)]('(((.+)+)+)'+'+$')['toString']()[_0x14f46e(_0x24753e._0x470ea1,_0x24753e._0x58354f,0x7f,0x7d)+'r'](_0x250e33)[_0x14f46e(0x33,0x63,_0x24753e._0x11600d,0x4d)](_0x2d62eb(_0x24753e._0x523a85,_0x24753e._0x149a0a,_0x24753e._0x3b617c,_0x24753e._0xab8fc)+'+$');});_0x250e33();const _0x15b516={};_0x15b516['useSqlByDe'+_0x4a3852(-0x92,-0x94,-0xa1,-0xa2)]=![],_0x15b516['browser']=['Chrome',_0x1c8932(-0x120,-0x105,-0x11e,-0x12f),_0x4a3852(-0x90,-0x77,-0x72,-0x94)],_0x15b516[_0x1c8932(-0xdd,-0xd1,-0xc0,-0xbb)]=!![],_0x15b516[_0x4a3852(-0x77,-0x6e,-0x69,-0x98)+_0x4a3852(-0x89,-0x98,-0x84,-0x8a)]=_0x4a3852(-0x76,-0x7b,-0x7d,-0x75),_0x15b516['autoReconn'+_0x1c8932(-0x102,-0xe1,-0x116,-0x105)]=![],_0x15b516[_0x4a3852(-0xae,-0xc9,-0x97,-0xa7)]=_0x1c8932(-0xf8,-0xec,-0x106,-0xe2),_0x15b516[_0x4a3852(-0x99,-0xb3,-0x86,-0xae)+_0x4a3852(-0x82,-0x97,-0x70,-0x91)]=![];const _0x49d969={};_0x49d969[_0x1c8932(-0xe5,-0xf2,-0xe0,-0xcd)]=0x5,_0x49d969[_0x1c8932(-0x118,-0x115,-0x12e,-0x10d)+'ay']=0x7d0,_0x49d969[_0x1c8932(-0xf1,-0xe5,-0xec,-0xd7)]=0x7530,_0x49d969[_0x1c8932(-0xf9,-0x10b,-0xdb,-0xec)]=0x2;const _0x47c5aa={};_0x47c5aa['enabled']=![],_0x47c5aa[_0x1c8932(-0xdf,-0xef,-0xd1,-0xd6)]=_0x4a3852(-0x98,-0xb9,-0x8a,-0x86)+_0x1c8932(-0xf2,-0xe5,-0xef,-0xfa),_0x47c5aa['applyToTyp'+'es']=[_0x4a3852(-0x72,-0x50,-0x75,-0x85),_0x4a3852(-0xb1,-0xab,-0xb6,-0xc4),_0x4a3852(-0xa0,-0xb4,-0xb0,-0xbf),_0x1c8932(-0x104,-0x115,-0xeb,-0xe6),'document',_0x4a3852(-0x8d,-0x9e,-0x75,-0xad)],_0x47c5aa[_0x1c8932(-0x10a,-0x120,-0x11c,-0xeb)+'ng']=!![];function _0x393c(_0x2d0063,_0x505c2c){const _0x5e6023=_0x3592();return _0x393c=function(_0x54cd57,_0xc62169){_0x54cd57=_0x54cd57-(-0x4*0x3ea+0x1*0x14f6+-0x1*0x39e);let _0x42f801=_0x5e6023[_0x54cd57];if(_0x393c['BfSSfd']===undefined){var _0x4c225d=function(_0x2e4d15){const _0x454850='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x4d7f9b='',_0x300399='',_0x4b9214=_0x4d7f9b+_0x4c225d;for(let _0x2b4886=-0x133d+-0x252d*0x1+0x386a,_0x46a95e,_0x6882c2,_0x4dbf3a=-0x1173+0x904+0x86f;_0x6882c2=_0x2e4d15['charAt'](_0x4dbf3a++);~_0x6882c2&&(_0x46a95e=_0x2b4886%(-0x1e1*0x2+-0x1556+0x191c)?_0x46a95e*(0x1212+0x1521*0x1+-0x26f3)+_0x6882c2:_0x6882c2,_0x2b4886++%(0xffd+-0x226d+0x1274))?_0x4d7f9b+=_0x4b9214['charCodeAt'](_0x4dbf3a+(-0xc5e+-0x1ee6+0x2e*0xf1))-(0x1479+0x2c8*-0xc+0xcf1)!==0x23f9+-0xb6f+-0x188a?String['fromCharCode'](0x25fd+0x53*-0x2e+-0x75c*0x3&_0x46a95e>>(-(-0x166f*-0x1+0x1*0x5e1+-0x1c4e)*_0x2b4886&-0x1*-0x1f81+0x1018+-0x1*0x2f93)):_0x2b4886:0x6a2+-0x252e*-0x1+0x2bd*-0x10){_0x6882c2=_0x454850['indexOf'](_0x6882c2);}for(let _0x157bd0=0x836+-0xae5*-0x2+-0x1e00,_0x67a498=_0x4d7f9b['length'];_0x157bd0<_0x67a498;_0x157bd0++){_0x300399+='%'+('00'+_0x4d7f9b['charCodeAt'](_0x157bd0)['toString'](-0x1*-0x1516+0x15fc+0x44d*-0xa))['slice'](-(0x97*0x3e+-0x1*0x1549+-0xf47));}return decodeURIComponent(_0x300399);};_0x393c['zpygyk']=_0x4c225d,_0x2d0063=arguments,_0x393c['BfSSfd']=!![];}const _0x3cde8b=_0x5e6023[-0x2*0x1297+0x675+0x1eb9],_0x34e5c4=_0x54cd57+_0x3cde8b,_0x39a348=_0x2d0063[_0x34e5c4];if(!_0x39a348){const _0x4c5867=function(_0x61afad){this['HjuzcO']=_0x61afad,this['jQEcqN']=[-0x3*-0xa4d+-0x2d*0x3d+-0x142d,-0x9fa+-0x1*-0x1371+-0x977,0x1*0x1115+-0x3e*-0x75+-0x97*0x4d],this['VEscDU']=function(){return'newState';},this['KXpGJA']='\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*',this['wAcQjs']='[\x27|\x22].+[\x27|\x22];?\x20*}';};_0x4c5867['prototype']['BzORtU']=function(){const _0x25046c=new RegExp(this['KXpGJA']+this['wAcQjs']),_0x1239c4=_0x25046c['test'](this['VEscDU']['toString']())?--this['jQEcqN'][-0x2117+-0x2257*0x1+-0x11b*-0x3d]:--this['jQEcqN'][0x781+0x1237+-0x66e*0x4];return this['LVUdVr'](_0x1239c4);},_0x4c5867['prototype']['LVUdVr']=function(_0x5638a8){if(!Boolean(~_0x5638a8))return _0x5638a8;return this['JjPOqo'](this['HjuzcO']);},_0x4c5867['prototype']['JjPOqo']=function(_0x33aa5d){for(let _0x188964=-0x1765+-0x102f*0x1+0x11*0x254,_0x5b5bf0=this['jQEcqN']['length'];_0x188964<_0x5b5bf0;_0x188964++){this['jQEcqN']['push'](Math['round'](Math['random']())),_0x5b5bf0=this['jQEcqN']['length'];}return _0x33aa5d(this['jQEcqN'][-0x1d94+-0x199f+0x3733]);},new _0x4c5867(_0x393c)['BzORtU'](),_0x42f801=_0x393c['zpygyk'](_0x42f801),_0x2d0063[_0x34e5c4]=_0x42f801;}else _0x42f801=_0x39a348;return _0x42f801;},_0x393c(_0x2d0063,_0x505c2c);}const _0x5cd340={};_0x5cd340[_0x4a3852(-0xa8,-0x9a,-0xb3,-0xa2)]=![],_0x5cd340['maxMessage'+'s']=0x14,_0x5cd340[_0x1c8932(-0xed,-0x100,-0xd0,-0xe3)]=0xea60,_0x5cd340['queueInter'+'val']=0x3e8;const _0x2ca178={};_0x2ca178[_0x4a3852(-0xb0,-0xc4,-0xcd,-0xa2)]=null,_0x2ca178['timeout']=0x1388,_0x2ca178['retry']=!![],_0x2ca178[_0x4a3852(-0x78,-0x9a,-0x8f,-0x5d)]=0x3;const _0x176ae7={};_0x176ae7[_0x4a3852(-0xa8,-0xb0,-0xc7,-0xba)]=!![],_0x176ae7['filePath']=_0x4a3852(-0x76,-0x86,-0x95,-0x67)+'/stats.jso'+'n',_0x176ae7[_0x4a3852(-0x83,-0x78,-0x74,-0x81)+'terval']=0xea60;const _0x24ee05={};_0x24ee05['enabled']=!![],_0x24ee05[_0x4a3852(-0x8a,-0xab,-0x9d,-0x9f)+'s']=0x3e8,_0x24ee05['maxAge']=0x18;const _0x37918d={};_0x37918d[_0x4a3852(-0x71,-0x61,-0x60,-0x6f)+'ad']=![],_0x37918d[_0x4a3852(-0x91,-0xa2,-0xa7,-0x9e)+'r']=_0x1c8932(-0xfc,-0xf8,-0x11b,-0xe2);function _0x4a3852(_0x37dd98,_0x2ca28b,_0x47b659,_0x4c43bd){const _0x3fdb4a={_0x5b48e3:0x263};return _0x393c(_0x37dd98- -_0x3fdb4a._0x5b48e3,_0x4c43bd);}_0x37918d['maxFileSiz'+'e']=0x64;const _0x5f3004={};_0x5f3004[_0x1c8932(-0x114,-0x10e,-0xf6,-0x10e)]=_0x1c8932(-0x101,-0x106,-0xff,-0xe9),_0x5f3004['author']=_0x1c8932(-0xf3,-0xde,-0x10d,-0xff)+'ot',_0x5f3004[_0x4a3852(-0xaf,-0xa3,-0xaf,-0xc3)]=['🤖','🚀'];const _0x1c5db9={};_0x1c5db9[_0x1c8932(-0xee,-0xf7,-0xf8,-0x105)+_0x1c8932(-0x109,-0x107,-0x114,-0x10f)]=!![],_0x1c5db9[_0x4a3852(-0x9a,-0x89,-0x9a,-0x84)]=!![],_0x1c5db9[_0x4a3852(-0xb2,-0xb6,-0x9b,-0x96)]=!![],_0x1c5db9['broadcast']=!![],_0x1c5db9[_0x1c8932(-0xe6,-0xd3,-0xf4,-0x108)]=!![];function _0x3592(){const _0x4b81e0=['zw5HyMXLza','CgfJA25HBwu','mty4z2LTC2v5','ndeZnJiWEwPvAK93','zxHWB3j0CW','C2vHCMnO','ndyYngXKugr1yq','mtuYmZrnCMHxAgS','DMLKzw8','nJLWCvPHweC','BwvKAwe','B25SEu91DgDVAq','zw1LBNq','yxbWBhK','C3rVCMLLCW','BwfYA09UBgLUzq','tMLZAgKGv2HHDa','yxvKAw8','CMf0zuXPBwL0','zwn0','tMLZAgKGqvbj','CMfJzq','zMf1Bhq','zg93BMXVywreAq','v2LUzg93CW','lI9TzwrPyq','zM9VDgvY','C3rPy2TLCG','BxvSDgLWBgLLCG','C2LSzw50','Bwf4twvZC2fNzq','C0rPCG','CMvJB25Uzwn0','C2HVD1n0ywnRva','v2HHDhnbChaGqG','C0fWCcbbueK','Bwf4rgvSyxK','yxv0B1nHDMvjBG','t25dB25Uzwn0','z3jVDxbnyw5HzW','Aw50zxj2ywW','zgvIDwC','D2vIAg9VAW','C3rHDhm','nZuZmJz2wgzyAKu','zMvHDhvYzxm','Dg9tDhjPBMC','y29UDgfJDhm','Bwf4uMv0CMLLCW','y3jLzgvUDgLHBa','lI9ZzxnZAw9UCW','mZa2odG2ohPeB0jttq','mJK0n0fqyK1Kuq','y29UC3rYDwn0BW','Dgv4Da','yxv0B0rVD25SBW','ChjPBNrruG','mtiWlJaUma','Cg9SBhm','Aw1Hz2u','zgvMyxvSDfvYBa','y2f0zwDVCMLLCW','Bg9Ntgv2zwW','mtG3oeHdrNPmuq','kcGOlISPkYKRkq','Aw5PDgLHBerLBa','mJi3n1zdBLHotG','nda2ndvswLvNs1a'];_0x3592=function(){return _0x4b81e0;};return _0x3592();}const _0x1ff3ea={};_0x1ff3ea[_0x1c8932(-0xec,-0xd3,-0xec,-0xfb)]=![],_0x1ff3ea['verbose']=![],_0x1ff3ea[_0x1c8932(-0xf4,-0x110,-0xec,-0xdd)+_0x4a3852(-0x93,-0xb5,-0x93,-0xa1)]=!![];const _0xc0e437={};_0xc0e437['session']=_0x15b516,_0xc0e437[_0x4a3852(-0x88,-0x93,-0xa7,-0x8a)]=_0x49d969,_0xc0e437[_0x4a3852(-0x8e,-0xa3,-0x74,-0x7b)]=_0x47c5aa,_0xc0e437[_0x1c8932(-0x103,-0x10f,-0xeb,-0x10a)]=_0x5cd340;function _0x1c8932(_0x3de07c,_0x5c7943,_0x446798,_0x42c14b){return _0x393c(_0x3de07c- -0x2d0,_0x42c14b);}_0xc0e437[_0x4a3852(-0x7e,-0x65,-0x88,-0x7f)]=_0x2ca178,_0xc0e437[_0x1c8932(-0xea,-0xd6,-0xee,-0xeb)]=_0x176ae7,_0xc0e437['messageSto'+'re']=_0x24ee05,_0xc0e437[_0x1c8932(-0x10b,-0x126,-0xf9,-0xec)]=_0x37918d,_0xc0e437['sticker']=_0x5f3004,_0xc0e437[_0x4a3852(-0x7b,-0x84,-0x75,-0x5d)]=_0x1c5db9,_0xc0e437['developer']=_0x1ff3ea;const waApiConfig=_0xc0e437;module[_0x1c8932(-0x111,-0x128,-0xfd,-0xfc)]=waApiConfig;
|
|
1
|
+
/**
|
|
2
|
+
* Nishi WhatsApp API Configuration
|
|
3
|
+
*
|
|
4
|
+
* Diese Datei wird automatisch erstellt und kann beliebig angepasst werden.
|
|
5
|
+
* Alle Einstellungen können zur Laufzeit über Funktionsparameter überschrieben werden.
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
const waApiConfig = {
|
|
9
|
+
/**
|
|
10
|
+
* Session-Einstellungen
|
|
11
|
+
*/
|
|
12
|
+
session: {
|
|
13
|
+
// SQL-Auth als Standard verwenden (true = SQLite DB, false = JSON-Files)
|
|
14
|
+
useSqlByDefault: false,
|
|
15
|
+
|
|
16
|
+
// Standard Browser für WhatsApp Web
|
|
17
|
+
browser: ['Chrome', '120.0.0', 'Windows'],
|
|
18
|
+
|
|
19
|
+
// QR-Code im Terminal anzeigen
|
|
20
|
+
printQR: true,
|
|
21
|
+
|
|
22
|
+
// Credentials Verzeichnis
|
|
23
|
+
credentialsDir: './sessions',
|
|
24
|
+
|
|
25
|
+
// Automatisch reconnecten bei Disconnect
|
|
26
|
+
autoReconnect: false,
|
|
27
|
+
|
|
28
|
+
// Logger Level ('trace', 'debug', 'info', 'warn', 'error', 'fatal', 'silent')
|
|
29
|
+
logLevel: 'silent',
|
|
30
|
+
|
|
31
|
+
// Online-Status beim Verbinden
|
|
32
|
+
markOnlineOnConnect: false,
|
|
33
|
+
},
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* Auto-Reconnect Einstellungen
|
|
37
|
+
*/
|
|
38
|
+
reconnect: {
|
|
39
|
+
// Maximale Reconnect-Versuche
|
|
40
|
+
maxRetries: 5,
|
|
41
|
+
|
|
42
|
+
// Initiales Delay in ms
|
|
43
|
+
initialDelay: 2000,
|
|
44
|
+
|
|
45
|
+
// Maximales Delay in ms
|
|
46
|
+
maxDelay: 30000,
|
|
47
|
+
|
|
48
|
+
// Delay-Multiplikator für Exponential Backoff
|
|
49
|
+
multiplier: 2,
|
|
50
|
+
},
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* Footer/Wasserzeichen für Nachrichten
|
|
54
|
+
*/
|
|
55
|
+
footer: {
|
|
56
|
+
// Footer aktivieren/deaktivieren
|
|
57
|
+
enabled: false,
|
|
58
|
+
|
|
59
|
+
// Footer-Text (z.B. "Powered by Nishi API 🚀")
|
|
60
|
+
text: 'Nishi WhatsApp API',
|
|
61
|
+
|
|
62
|
+
// Nachrichtentypen mit Footer (alle Typen wenn leer)
|
|
63
|
+
applyToTypes: ['text', 'image', 'video', 'audio', 'document', 'sticker'],
|
|
64
|
+
|
|
65
|
+
// Footer nur für ausgehende Nachrichten (nicht bei Antworten)
|
|
66
|
+
onlyOutgoing: true,
|
|
67
|
+
},
|
|
68
|
+
|
|
69
|
+
/**
|
|
70
|
+
* Message Queue & Rate Limiting
|
|
71
|
+
*/
|
|
72
|
+
rateLimit: {
|
|
73
|
+
// Rate Limiting aktivieren
|
|
74
|
+
enabled: false,
|
|
75
|
+
|
|
76
|
+
// Maximale Nachrichten pro Interval
|
|
77
|
+
maxMessages: 20,
|
|
78
|
+
|
|
79
|
+
// Interval in ms
|
|
80
|
+
interval: 60000, // 60 Sekunden
|
|
81
|
+
|
|
82
|
+
// Queue-Verarbeitungs-Interval in ms
|
|
83
|
+
queueInterval: 1000,
|
|
84
|
+
},
|
|
85
|
+
|
|
86
|
+
/**
|
|
87
|
+
* Webhook-Einstellungen
|
|
88
|
+
*/
|
|
89
|
+
webhook: {
|
|
90
|
+
// Standard Webhook URL (optional)
|
|
91
|
+
defaultUrl: null,
|
|
92
|
+
|
|
93
|
+
// Webhook-Timeout in ms
|
|
94
|
+
timeout: 5000,
|
|
95
|
+
|
|
96
|
+
// Retry bei Fehler
|
|
97
|
+
retry: true,
|
|
98
|
+
|
|
99
|
+
// Max Retries
|
|
100
|
+
maxRetries: 3,
|
|
101
|
+
},
|
|
102
|
+
|
|
103
|
+
/**
|
|
104
|
+
* Statistik-Einstellungen
|
|
105
|
+
*/
|
|
106
|
+
stats: {
|
|
107
|
+
// Statistiken speichern
|
|
108
|
+
enabled: true,
|
|
109
|
+
|
|
110
|
+
// Stats-File Pfad
|
|
111
|
+
filePath: './sessions/stats.json',
|
|
112
|
+
|
|
113
|
+
// Auto-Save Interval in ms (0 = nur bei Stop)
|
|
114
|
+
autoSaveInterval: 60000, // Jede Minute
|
|
115
|
+
},
|
|
116
|
+
|
|
117
|
+
/**
|
|
118
|
+
* Message Store Einstellungen
|
|
119
|
+
*/
|
|
120
|
+
messageStore: {
|
|
121
|
+
// Nachrichten im Speicher behalten (für Zitate/Edits)
|
|
122
|
+
enabled: true,
|
|
123
|
+
|
|
124
|
+
// Maximale Nachrichten pro Session
|
|
125
|
+
maxMessages: 1000,
|
|
126
|
+
|
|
127
|
+
// Nachrichten nach X Stunden löschen
|
|
128
|
+
maxAge: 24, // Stunden
|
|
129
|
+
},
|
|
130
|
+
|
|
131
|
+
/**
|
|
132
|
+
* Media-Einstellungen
|
|
133
|
+
*/
|
|
134
|
+
media: {
|
|
135
|
+
// Automatisch Media herunterladen
|
|
136
|
+
autoDownload: false,
|
|
137
|
+
|
|
138
|
+
// Download-Verzeichnis
|
|
139
|
+
downloadDir: './media',
|
|
140
|
+
|
|
141
|
+
// Maximale Dateigröße in MB
|
|
142
|
+
maxFileSize: 100,
|
|
143
|
+
},
|
|
144
|
+
|
|
145
|
+
/**
|
|
146
|
+
* Sticker-Einstellungen
|
|
147
|
+
*/
|
|
148
|
+
sticker: {
|
|
149
|
+
// Standard Pack Name
|
|
150
|
+
packname: 'Nishi API',
|
|
151
|
+
|
|
152
|
+
// Standard Author
|
|
153
|
+
author: 'WhatsApp Bot',
|
|
154
|
+
|
|
155
|
+
// Standard Kategorien
|
|
156
|
+
categories: ['🤖', '🚀'],
|
|
157
|
+
},
|
|
158
|
+
|
|
159
|
+
/**
|
|
160
|
+
* Feature-Flags
|
|
161
|
+
*/
|
|
162
|
+
features: {
|
|
163
|
+
// Gruppen-Management aktivieren
|
|
164
|
+
groupManagement: true,
|
|
165
|
+
|
|
166
|
+
// Status/Stories aktivieren
|
|
167
|
+
stories: true,
|
|
168
|
+
|
|
169
|
+
// Polls aktivieren
|
|
170
|
+
polls: true,
|
|
171
|
+
|
|
172
|
+
// Broadcast Lists aktivieren
|
|
173
|
+
broadcast: true,
|
|
174
|
+
|
|
175
|
+
// Contact Management aktivieren
|
|
176
|
+
contacts: true,
|
|
177
|
+
},
|
|
178
|
+
|
|
179
|
+
/**
|
|
180
|
+
* Entwickler-Optionen
|
|
181
|
+
*/
|
|
182
|
+
developer: {
|
|
183
|
+
// Debug-Modus
|
|
184
|
+
debug: false,
|
|
185
|
+
|
|
186
|
+
// Verbose Logging
|
|
187
|
+
verbose: false,
|
|
188
|
+
|
|
189
|
+
// Error Stack Traces zeigen
|
|
190
|
+
showStackTrace: true,
|
|
191
|
+
},
|
|
192
|
+
};
|
|
193
|
+
|
|
194
|
+
/**
|
|
195
|
+
* Default Config Export (falls keine Config-Datei existiert)
|
|
196
|
+
*/
|
|
197
|
+
module.exports = waApiConfig;
|
package/dist/wa-api.config.js
CHANGED
|
@@ -1 +1,197 @@
|
|
|
1
|
-
(function(_0x4c8c49,_0x32e9a9){const _0x17540e={_0x5e7d15:0x7c,_0x34c80b:0x83,_0x5782e7:0x66,_0x2ef7f7:0x2d,_0x15a4e2:0x39,_0x4827d4:0x3c,_0x297506:0x3f,_0xab769e:0x5c,_0x11df59:0x75,_0xf9369e:0x4b,_0x556e9a:0x35,_0x122e5c:0x3a,_0x3ed152:0x1d,_0x5eedcc:0x2bb,_0x1e4568:0x28a,_0x4be331:0x2a0,_0x10739b:0x69,_0x82c5cb:0x72,_0x2301d4:0x78,_0x23b59f:0x5d,_0xe67b1a:0x4e,_0x1a9cd8:0x276,_0x4c79c2:0x27e},_0x3c0886={_0xd65d9d:0xcc},_0x3bb8c1=_0x4c8c49();function _0x53c802(_0x49861d,_0xa75915,_0x4bc7ff,_0x19e5b3){return _0x28c3(_0x4bc7ff- -0x22e,_0x49861d);}function _0x22aeb9(_0x451371,_0xcc10f4,_0x52d8ad,_0x581ac0){return _0x28c3(_0x581ac0-_0x3c0886._0xd65d9d,_0x451371);}while(!![]){try{const _0x138f8f=-parseInt(_0x53c802(-0x7e,-0x7c,-0x72,-_0x17540e._0x5e7d15))/(0xb17*-0x1+0x238a+-0x1*0x1872)*(parseInt(_0x53c802(-_0x17540e._0x34c80b,-0x88,-_0x17540e._0x5782e7,-0x4c))/(-0x1517+0x2612+-0x10f9))+-parseInt(_0x53c802(-_0x17540e._0x2ef7f7,-0x64,-0x42,-0x34))/(0x1bb2+0x89b+0xa*-0x3a1)+-parseInt(_0x53c802(-_0x17540e._0x15a4e2,-_0x17540e._0x4827d4,-0x3d,-0x1e))/(0x2548+0x62f+-0x2b73)+parseInt(_0x53c802(-0x76,-_0x17540e._0x297506,-_0x17540e._0xab769e,-_0x17540e._0x11df59))/(0x1a5f+-0x1607*0x1+0x1*-0x453)*(parseInt(_0x53c802(-_0x17540e._0xf9369e,-_0x17540e._0x556e9a,-_0x17540e._0x122e5c,-_0x17540e._0x3ed152))/(-0xa08+-0xc33+0x1641))+-parseInt(_0x22aeb9(0x2c1,_0x17540e._0x5eedcc,_0x17540e._0x1e4568,_0x17540e._0x4be331))/(-0xa22+-0x23dc+-0x9*-0x51d)+parseInt(_0x53c802(-_0x17540e._0x10739b,-_0x17540e._0x82c5cb,-_0x17540e._0x2301d4,-0x7c))/(-0x2622+0x4ba+0x2170)+-parseInt(_0x53c802(-0x65,-_0x17540e._0x23b59f,-_0x17540e._0xe67b1a,-0x70))/(0xcf0+-0xa59+0x2*-0x147)*(-parseInt(_0x22aeb9(_0x17540e._0x1a9cd8,0x28c,_0x17540e._0x4c79c2,0x289))/(0xfd1+-0x2b*0x13+0x12*-0xb3));if(_0x138f8f===_0x32e9a9)break;else _0x3bb8c1['push'](_0x3bb8c1['shift']());}catch(_0x29a454){_0x3bb8c1['push'](_0x3bb8c1['shift']());}}}(_0x13b5,-0x141f0c+0x19bb4*0x5+0x19c595));const _0x2a8adb=(function(){let _0x1e597d=!![];return function(_0x3d42e1,_0x471f74){const _0x255f87={_0x5f1200:0x2f9,_0x199b5d:0x2d2,_0x42844b:0x2e5},_0x3afdc4=_0x1e597d?function(){const _0x77d8ba={_0x2b9f51:0x127};function _0x53c42f(_0x2cabe6,_0x3e2b91,_0x57cf1b,_0x4dd85c){return _0x28c3(_0x4dd85c-_0x77d8ba._0x2b9f51,_0x3e2b91);}if(_0x471f74){const _0x1c59a4=_0x471f74[_0x53c42f(_0x255f87._0x5f1200,_0x255f87._0x199b5d,0x2d6,_0x255f87._0x42844b)](_0x3d42e1,arguments);return _0x471f74=null,_0x1c59a4;}}:function(){};return _0x1e597d=![],_0x3afdc4;};}()),_0x63fc59=_0x2a8adb(this,function(){const _0x5c9a2d={_0x2e0831:0xff,_0x3abd83:0x388,_0x2fc1b1:0x378,_0x4aa868:0x3a4,_0x4c00cf:0x38d,_0x136208:0x384},_0x1a412d={_0x5e7b91:0x10d},_0x5e8dc9={_0xcfbee9:0x1b8},_0x13ac02={};function _0x5bb6ce(_0x26d878,_0x3b6c6d,_0x23bda1,_0x2af070){return _0x28c3(_0x23bda1-_0x5e8dc9._0xcfbee9,_0x2af070);}_0x13ac02['tVQTC']=_0x15d72f(0xd6,0xea,0xfc,_0x5c9a2d._0x2e0831)+'+$';const _0x43b521=_0x13ac02;function _0x15d72f(_0xa00239,_0x1bbf92,_0x445e91,_0x546383){return _0x28c3(_0x1bbf92- -_0x1a412d._0x5e7b91,_0xa00239);}return _0x63fc59[_0x5bb6ce(_0x5c9a2d._0x3abd83,_0x5c9a2d._0x2fc1b1,0x386,0x3a1)]()[_0x5bb6ce(_0x5c9a2d._0x4aa868,_0x5c9a2d._0x4c00cf,_0x5c9a2d._0x136208,0x369)](_0x43b521['tVQTC'])['toString']()['constructo'+'r'](_0x63fc59)[_0x5bb6ce(0x3a7,0x374,0x384,0x390)]('(((.+)+)+)'+'+$');});_0x63fc59();const _0x462f2c={};_0x462f2c[_0xf6877(-0x10d,-0x13c,-0x120,-0x131)+_0x6d8a8(0x1f9,0x235,0x216,0x20b)]=![],_0x462f2c['browser']=[_0xf6877(-0x15c,-0x169,-0x14f,-0x14c),_0x6d8a8(0x22a,0x213,0x235,0x22e),_0x6d8a8(0x211,0x1e1,0x204,0x208)],_0x462f2c[_0xf6877(-0x15a,-0x14a,-0x14a,-0x163)]=!![],_0x462f2c[_0x6d8a8(0x242,0x229,0x226,0x219)+_0x6d8a8(0x1ed,0x21b,0x1fb,0x211)]=_0xf6877(-0x149,-0x128,-0x14b,-0x145),_0x462f2c[_0x6d8a8(0x221,0x20d,0x21c,0x1fe)+_0xf6877(-0x121,-0xff,-0x114,-0x10d)]=![],_0x462f2c[_0x6d8a8(0x20c,0x21e,0x20b,0x1f5)]='silent',_0x462f2c['markOnline'+_0xf6877(-0x13f,-0x135,-0x149,-0x135)]=![];const _0x25fe0a={};_0x25fe0a[_0x6d8a8(0x1f9,0x201,0x212,0x234)]=0x5,_0x25fe0a[_0x6d8a8(0x215,0x206,0x1f3,0x20b)+'ay']=0x7d0,_0x25fe0a['maxDelay']=0x7530,_0x25fe0a['multiplier']=0x2;const _0x40b66d={};_0x40b66d[_0x6d8a8(0x244,0x257,0x234,0x24a)]=![],_0x40b66d['text']=_0xf6877(-0x11b,-0x10b,-0x12c,-0x13d)+_0x6d8a8(0x221,0x251,0x22e,0x233),_0x40b66d['applyToTyp'+'es']=[_0xf6877(-0x138,-0x13f,-0x14c,-0x12c),'image',_0xf6877(-0x113,-0x130,-0x11a,-0x134),_0x6d8a8(0x1f4,0x1fe,0x210,0x21c),_0xf6877(-0xfc,-0x100,-0x118,-0x119),_0xf6877(-0x126,-0x12e,-0x12a,-0x12c)],_0x40b66d['onlyOutgoi'+'ng']=!![];const _0x529a16={};_0x529a16['enabled']=![],_0x529a16[_0xf6877(-0x145,-0x133,-0x126,-0x10d)+'s']=0x14,_0x529a16[_0xf6877(-0x11a,-0xfe,-0x11b,-0x121)]=0xea60,_0x529a16[_0xf6877(-0x179,-0x137,-0x159,-0x136)+_0x6d8a8(0x213,0x1fb,0x217,0x1fc)]=0x3e8;const _0xd31f66={};_0xd31f66[_0xf6877(-0x150,-0x11b,-0x133,-0x123)]=null,_0xd31f66[_0xf6877(-0x170,-0x14c,-0x14e,-0x142)]=0x1388,_0xd31f66[_0xf6877(-0x122,-0x14a,-0x13a,-0x140)]=!![],_0xd31f66[_0x6d8a8(0x229,0x1fd,0x212,0x236)]=0x3;const _0x59c000={};_0x59c000['enabled']=!![],_0x59c000[_0x6d8a8(0x23b,0x249,0x228,0x24c)]=_0xf6877(-0x168,-0x12c,-0x14b,-0x13f)+_0xf6877(-0x143,-0x110,-0x132,-0x116)+'n',_0x59c000[_0xf6877(-0x140,-0x164,-0x156,-0x16a)+_0x6d8a8(0x207,0x20d,0x220,0x237)]=0xea60;function _0x28c3(_0x268f11,_0x8cc564){const _0x2a261e=_0x13b5();return _0x28c3=function(_0x3d20b7,_0x520502){_0x3d20b7=_0x3d20b7-(-0x576*-0x2+-0x1521+0xbeb);let _0x46d7fb=_0x2a261e[_0x3d20b7];if(_0x28c3['wAnKBw']===undefined){var _0x56c52f=function(_0xd2605b){const _0x55517e='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x19e127='',_0x53ec9b='',_0x549e63=_0x19e127+_0x56c52f;for(let _0x49b50c=-0x5ac+0x1bf4+-0x1648,_0x4a6f76,_0x4151fa,_0x32a8f2=0x1*0x586+0x13f7+0x4b*-0x57;_0x4151fa=_0xd2605b['charAt'](_0x32a8f2++);~_0x4151fa&&(_0x4a6f76=_0x49b50c%(-0x1*0x1406+-0x1482+0x288c)?_0x4a6f76*(0x696*0x1+-0x1*0x1fa+-0x174*0x3)+_0x4151fa:_0x4151fa,_0x49b50c++%(0x5*0x4d6+0x9fc+0x11a*-0x1f))?_0x19e127+=_0x549e63['charCodeAt'](_0x32a8f2+(0x2bf*0x8+0x1abb+-0x30a9*0x1))-(0x1d89+-0x1c92+-0xed)!==-0x1f61+0x2*0x3fb+-0x176b*-0x1?String['fromCharCode'](-0x2354+-0x20ca+0x451d*0x1&_0x4a6f76>>(-(0x528*0x1+-0x456+-0xd0)*_0x49b50c&-0x1*0x22e+-0x823*0x1+0xa57)):_0x49b50c:0x6c0+0x1*0x35f+-0xa1f){_0x4151fa=_0x55517e['indexOf'](_0x4151fa);}for(let _0x5b5c5f=0x23e5+-0x442*-0x8+-0x45f5,_0x2573df=_0x19e127['length'];_0x5b5c5f<_0x2573df;_0x5b5c5f++){_0x53ec9b+='%'+('00'+_0x19e127['charCodeAt'](_0x5b5c5f)['toString'](0x4a7+0x153+-0x5ea))['slice'](-(0x77*-0x13+0x2*-0x4f6+-0x1*-0x12c3));}return decodeURIComponent(_0x53ec9b);};_0x28c3['sjUWuw']=_0x56c52f,_0x268f11=arguments,_0x28c3['wAnKBw']=!![];}const _0x3552cd=_0x2a261e[0x2a2*0x7+-0x7f2+-0x29f*0x4],_0x5e0ed8=_0x3d20b7+_0x3552cd,_0x20d9ba=_0x268f11[_0x5e0ed8];if(!_0x20d9ba){const _0xdad7fa=function(_0x5ab395){this['vUkBBk']=_0x5ab395,this['tfABiF']=[0x359*0x2+-0x27*-0x87+0x6*-0x48b,0x943+0x1fb*-0x8+0x695,-0x853*0x3+0x1*-0x261d+0x3f16],this['fxFESj']=function(){return'newState';},this['rYMdtl']='\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*',this['YfbPwN']='[\x27|\x22].+[\x27|\x22];?\x20*}';};_0xdad7fa['prototype']['FfOeNs']=function(){const _0x176e09=new RegExp(this['rYMdtl']+this['YfbPwN']),_0x56b898=_0x176e09['test'](this['fxFESj']['toString']())?--this['tfABiF'][0x6*-0xb1+-0x1650+0x1a77]:--this['tfABiF'][0x13e7+0x1*-0x19d9+0x5f2];return this['DKfKUf'](_0x56b898);},_0xdad7fa['prototype']['DKfKUf']=function(_0x30aa2b){if(!Boolean(~_0x30aa2b))return _0x30aa2b;return this['fXffXS'](this['vUkBBk']);},_0xdad7fa['prototype']['fXffXS']=function(_0x452af9){for(let _0x2f38c2=-0xb*-0x26e+-0x2137+0x67d,_0x1a7837=this['tfABiF']['length'];_0x2f38c2<_0x1a7837;_0x2f38c2++){this['tfABiF']['push'](Math['round'](Math['random']())),_0x1a7837=this['tfABiF']['length'];}return _0x452af9(this['tfABiF'][0x71b*0x1+0x321+-0xa3c]);},new _0xdad7fa(_0x28c3)['FfOeNs'](),_0x46d7fb=_0x28c3['sjUWuw'](_0x46d7fb),_0x268f11[_0x5e0ed8]=_0x46d7fb;}else _0x46d7fb=_0x20d9ba;return _0x46d7fb;},_0x28c3(_0x268f11,_0x8cc564);}function _0xf6877(_0x4ab426,_0xcbd0b2,_0x3a4426,_0x40fa1d){const _0x1f076c={_0x47fd21:0x310};return _0x28c3(_0x3a4426- -_0x1f076c._0x47fd21,_0x4ab426);}const _0xaad069={};_0xaad069[_0x6d8a8(0x237,0x21f,0x234,0x24a)]=!![],_0xaad069['maxMessage'+'s']=0x3e8,_0xaad069['maxAge']=0x18;const _0x37dc43={};_0x37dc43[_0x6d8a8(0x23b,0x23f,0x22a,0x232)+'ad']=![],_0x37dc43[_0x6d8a8(0x200,0x1f0,0x208,0x1e6)+'r']=_0xf6877(-0x131,-0x167,-0x146,-0x131),_0x37dc43[_0x6d8a8(0x200,0x214,0x224,0x20f)+'e']=0x64;const _0x48cae0={};_0x48cae0[_0xf6877(-0x149,-0x12b,-0x14d,-0x150)]=_0x6d8a8(0x222,0x20d,0x206,0x203),_0x48cae0['author']=_0xf6877(-0x126,-0x14f,-0x131,-0x141)+'ot',_0x48cae0[_0xf6877(-0x10d,-0x130,-0x129,-0x112)]=['🤖','🚀'];const _0x401c3c={};_0x401c3c[_0x6d8a8(0x241,0x23e,0x236,0x259)+_0x6d8a8(0x22a,0x1f1,0x20c,0x20c)]=!![],_0x401c3c['stories']=!![],_0x401c3c[_0x6d8a8(0x227,0x221,0x223,0x20f)]=!![],_0x401c3c[_0x6d8a8(0x1e5,0x1f7,0x1fa,0x210)]=!![],_0x401c3c['contacts']=!![];const _0x4c1dd3={};_0x4c1dd3[_0x6d8a8(0x21e,0x217,0x229,0x211)]=![];function _0x6d8a8(_0x3be550,_0xe704fa,_0x40443a,_0x349314){const _0x194d7d={_0x22e492:0x3b};return _0x28c3(_0x40443a-_0x194d7d._0x22e492,_0xe704fa);}_0x4c1dd3[_0x6d8a8(0x234,0x230,0x21d,0x224)]=![],_0x4c1dd3[_0xf6877(-0x15f,-0x148,-0x155,-0x170)+_0xf6877(-0x115,-0x14f,-0x138,-0x134)]=!![];const _0x55072a={};function _0x13b5(){const _0xf8be58=['D2vIAg9VAW','zMf1Bhq','DMfS','zgvMyxvSDfvYBa','l3n0yxrZlMPZBW','v2HHDhnbChaGqG','mZK2mtC1ndfVyKTtzeG','yxv0B1jLy29UBG','DMvYyM9Zzq','CMvJB25Uzwn0','tMLZAgKGv2HHDa','DgvYDMfS','C3rPy2TLCG','y2f0zwDVCMLLCW','Cg9SBhm','Bwf4rMLSzvnPEG','Bwf4twvZC2fNzq','y3jLzgvUDgLHBa','mZq0mtqXn0XuzhnIzq','zMLSzvbHDgG','zgvIDwC','yxv0B0rVD25SBW','DxnLu3fSqNLezq','nZaWmZCWmhDiu01wra','C3rHDhm','C0fWCcbbueK','mZu4nZrJt09kqLG','Aw50zxj2ywW','DMLKzw8','kcGOlISPkYKRkq','zg9JDw1LBNq','zw5HyMXLza','mtiWlJaUma','z3jVDxbnyw5HzW','zwn0','mJC2odCYmeX6B2Lfsa','CxvLDwvjBNrLCG','Aw5PDgLHBerLBa','CMf0zuXPBwL0','yxv0B1nHDMvjBG','C2HVD1n0ywnRva','nwrorhbsza','mtbxrxfpCee','yxbWBhK','yNjVywrJyxn0','C0rPCG','q2HYB21L','DgLTzw91Da','CgfJA25HBwu','Dgv4Da','lI9ZzxnZAw9UCW','ChjPBNrruG','t25dB25Uzwn0','mZGXmJaYr3j3Devd','v2LUzg93CW','lI9TzwrPyq','tMLZAgKGqvbj','C2vHCMnO','zg93BMXVywreAq','Dg9tDhjPBMC','zgv2zwXVCgvY','Bg9Ntgv2zwW','zw1LBNq','odK1wNjOvw9u','BwvKAwe','nZq4otqYnNvOwg1wqq','yxvKAw8','CMv0CNK','Bwf4uMv0CMLLCW','CMfJzq','zM9VDgvY'];_0x13b5=function(){return _0xf8be58;};return _0x13b5();}_0x55072a['session']=_0x462f2c,_0x55072a[_0xf6877(-0x136,-0x13c,-0x12d,-0x14f)]=_0x25fe0a,_0x55072a[_0xf6877(-0x114,-0x13f,-0x137,-0x155)]=_0x40b66d,_0x55072a[_0xf6877(-0x15b,-0x15a,-0x157,-0x168)]=_0x529a16,_0x55072a[_0x6d8a8(0x238,0x225,0x215,0x21d)]=_0xd31f66,_0x55072a[_0xf6877(-0x116,-0x137,-0x11e,-0x141)]=_0x59c000,_0x55072a['messageSto'+'re']=_0xaad069,_0x55072a[_0x6d8a8(0x215,0x21c,0x20e,0x22c)]=_0x37dc43,_0x55072a[_0xf6877(-0x122,-0x122,-0x12a,-0x139)]=_0x48cae0,_0x55072a['features']=_0x401c3c,_0x55072a[_0x6d8a8(0x1f8,0x202,0x20a,0x1e9)]=_0x4c1dd3;export const waApiConfig=_0x55072a;export default waApiConfig;
|
|
1
|
+
/**
|
|
2
|
+
* Nishi WhatsApp API Configuration
|
|
3
|
+
*
|
|
4
|
+
* Diese Datei wird automatisch erstellt und kann beliebig angepasst werden.
|
|
5
|
+
* Alle Einstellungen können zur Laufzeit über Funktionsparameter überschrieben werden.
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
export const waApiConfig = {
|
|
9
|
+
/**
|
|
10
|
+
* Session-Einstellungen
|
|
11
|
+
*/
|
|
12
|
+
session: {
|
|
13
|
+
// SQL-Auth als Standard verwenden (true = SQLite DB, false = JSON-Files)
|
|
14
|
+
useSqlByDefault: false,
|
|
15
|
+
|
|
16
|
+
// Standard Browser für WhatsApp Web
|
|
17
|
+
browser: ['Chrome', '120.0.0', 'Windows'],
|
|
18
|
+
|
|
19
|
+
// QR-Code im Terminal anzeigen
|
|
20
|
+
printQR: true,
|
|
21
|
+
|
|
22
|
+
// Credentials Verzeichnis
|
|
23
|
+
credentialsDir: './sessions',
|
|
24
|
+
|
|
25
|
+
// Automatisch reconnecten bei Disconnect
|
|
26
|
+
autoReconnect: false,
|
|
27
|
+
|
|
28
|
+
// Logger Level ('trace', 'debug', 'info', 'warn', 'error', 'fatal', 'silent')
|
|
29
|
+
logLevel: 'silent',
|
|
30
|
+
|
|
31
|
+
// Online-Status beim Verbinden
|
|
32
|
+
markOnlineOnConnect: false,
|
|
33
|
+
},
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* Auto-Reconnect Einstellungen
|
|
37
|
+
*/
|
|
38
|
+
reconnect: {
|
|
39
|
+
// Maximale Reconnect-Versuche
|
|
40
|
+
maxRetries: 5,
|
|
41
|
+
|
|
42
|
+
// Initiales Delay in ms
|
|
43
|
+
initialDelay: 2000,
|
|
44
|
+
|
|
45
|
+
// Maximales Delay in ms
|
|
46
|
+
maxDelay: 30000,
|
|
47
|
+
|
|
48
|
+
// Delay-Multiplikator für Exponential Backoff
|
|
49
|
+
multiplier: 2,
|
|
50
|
+
},
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* Footer/Wasserzeichen für Nachrichten
|
|
54
|
+
*/
|
|
55
|
+
footer: {
|
|
56
|
+
// Footer aktivieren/deaktivieren
|
|
57
|
+
enabled: false,
|
|
58
|
+
|
|
59
|
+
// Footer-Text (z.B. "Powered by Nishi API 🚀")
|
|
60
|
+
text: 'Nishi WhatsApp API',
|
|
61
|
+
|
|
62
|
+
// Nachrichtentypen mit Footer (alle Typen wenn leer)
|
|
63
|
+
applyToTypes: ['text', 'image', 'video', 'audio', 'document', 'sticker'],
|
|
64
|
+
|
|
65
|
+
// Footer nur für ausgehende Nachrichten (nicht bei Antworten)
|
|
66
|
+
onlyOutgoing: true,
|
|
67
|
+
},
|
|
68
|
+
|
|
69
|
+
/**
|
|
70
|
+
* Message Queue & Rate Limiting
|
|
71
|
+
*/
|
|
72
|
+
rateLimit: {
|
|
73
|
+
// Rate Limiting aktivieren
|
|
74
|
+
enabled: false,
|
|
75
|
+
|
|
76
|
+
// Maximale Nachrichten pro Interval
|
|
77
|
+
maxMessages: 20,
|
|
78
|
+
|
|
79
|
+
// Interval in ms
|
|
80
|
+
interval: 60000, // 60 Sekunden
|
|
81
|
+
|
|
82
|
+
// Queue-Verarbeitungs-Interval in ms
|
|
83
|
+
queueInterval: 1000,
|
|
84
|
+
},
|
|
85
|
+
|
|
86
|
+
/**
|
|
87
|
+
* Webhook-Einstellungen
|
|
88
|
+
*/
|
|
89
|
+
webhook: {
|
|
90
|
+
// Standard Webhook URL (optional)
|
|
91
|
+
defaultUrl: null,
|
|
92
|
+
|
|
93
|
+
// Webhook-Timeout in ms
|
|
94
|
+
timeout: 5000,
|
|
95
|
+
|
|
96
|
+
// Retry bei Fehler
|
|
97
|
+
retry: true,
|
|
98
|
+
|
|
99
|
+
// Max Retries
|
|
100
|
+
maxRetries: 3,
|
|
101
|
+
},
|
|
102
|
+
|
|
103
|
+
/**
|
|
104
|
+
* Statistik-Einstellungen
|
|
105
|
+
*/
|
|
106
|
+
stats: {
|
|
107
|
+
// Statistiken speichern
|
|
108
|
+
enabled: true,
|
|
109
|
+
|
|
110
|
+
// Stats-File Pfad
|
|
111
|
+
filePath: './sessions/stats.json',
|
|
112
|
+
|
|
113
|
+
// Auto-Save Interval in ms (0 = nur bei Stop)
|
|
114
|
+
autoSaveInterval: 60000, // Jede Minute
|
|
115
|
+
},
|
|
116
|
+
|
|
117
|
+
/**
|
|
118
|
+
* Message Store Einstellungen
|
|
119
|
+
*/
|
|
120
|
+
messageStore: {
|
|
121
|
+
// Nachrichten im Speicher behalten (für Zitate/Edits)
|
|
122
|
+
enabled: true,
|
|
123
|
+
|
|
124
|
+
// Maximale Nachrichten pro Session
|
|
125
|
+
maxMessages: 1000,
|
|
126
|
+
|
|
127
|
+
// Nachrichten nach X Stunden löschen
|
|
128
|
+
maxAge: 24, // Stunden
|
|
129
|
+
},
|
|
130
|
+
|
|
131
|
+
/**
|
|
132
|
+
* Media-Einstellungen
|
|
133
|
+
*/
|
|
134
|
+
media: {
|
|
135
|
+
// Automatisch Media herunterladen
|
|
136
|
+
autoDownload: false,
|
|
137
|
+
|
|
138
|
+
// Download-Verzeichnis
|
|
139
|
+
downloadDir: './media',
|
|
140
|
+
|
|
141
|
+
// Maximale Dateigröße in MB
|
|
142
|
+
maxFileSize: 100,
|
|
143
|
+
},
|
|
144
|
+
|
|
145
|
+
/**
|
|
146
|
+
* Sticker-Einstellungen
|
|
147
|
+
*/
|
|
148
|
+
sticker: {
|
|
149
|
+
// Standard Pack Name
|
|
150
|
+
packname: 'Nishi API',
|
|
151
|
+
|
|
152
|
+
// Standard Author
|
|
153
|
+
author: 'WhatsApp Bot',
|
|
154
|
+
|
|
155
|
+
// Standard Kategorien
|
|
156
|
+
categories: ['🤖', '🚀'],
|
|
157
|
+
},
|
|
158
|
+
|
|
159
|
+
/**
|
|
160
|
+
* Feature-Flags
|
|
161
|
+
*/
|
|
162
|
+
features: {
|
|
163
|
+
// Gruppen-Management aktivieren
|
|
164
|
+
groupManagement: true,
|
|
165
|
+
|
|
166
|
+
// Status/Stories aktivieren
|
|
167
|
+
stories: true,
|
|
168
|
+
|
|
169
|
+
// Polls aktivieren
|
|
170
|
+
polls: true,
|
|
171
|
+
|
|
172
|
+
// Broadcast Lists aktivieren
|
|
173
|
+
broadcast: true,
|
|
174
|
+
|
|
175
|
+
// Contact Management aktivieren
|
|
176
|
+
contacts: true,
|
|
177
|
+
},
|
|
178
|
+
|
|
179
|
+
/**
|
|
180
|
+
* Entwickler-Optionen
|
|
181
|
+
*/
|
|
182
|
+
developer: {
|
|
183
|
+
// Debug-Modus
|
|
184
|
+
debug: false,
|
|
185
|
+
|
|
186
|
+
// Verbose Logging
|
|
187
|
+
verbose: false,
|
|
188
|
+
|
|
189
|
+
// Error Stack Traces zeigen
|
|
190
|
+
showStackTrace: true,
|
|
191
|
+
},
|
|
192
|
+
};
|
|
193
|
+
|
|
194
|
+
/**
|
|
195
|
+
* Default Config Export (falls keine Config-Datei existiert)
|
|
196
|
+
*/
|
|
197
|
+
export default waApiConfig;
|