NEWS
Драйвер Telegram Adapter
-
tinick
к
о
д
с
к
р
и
п
т
а
н
а
п
и
ш
и
с
ю
д
а
`! on({id: "telegram.0.communicate.request", ack: false, change: 'any'}, function (obj) {
! //log(obj.state.val);
! command = obj.state.val.substring(obj.state.val.indexOf(']')+1);
! user = obj.state.val.substring(obj.state.val.indexOf('[')+1,obj.state.val.indexOf(']'));
! if (command ==="
м
е
н
ю
") { //
ж
д
е
м
с
о
о
б
щ
е
н
и
е
о
т
п
о
л
ь
з
о
в
а
т
е
л
я
"
м
е
н
ю
"
! sendTo('telegram', {
! user: user,
! text: '
В
ы
б
е
р
и
т
е
к
н
о
п
к
у
',
! reply_markup: {
! inline_keyboard: [
! [{ text: '
К
н
о
п
к
а
', callback_data: 'OK' }],
! ],
! }
! });
! }
! if (command ==="OK") { //
н
а
ж
а
т
а
к
н
о
п
к
а
! sendTo('telegram', {
! user: user,
! text: '
К
о
н
е
ц
',
! editMessageText: {
! options: {
! chat_id: getState("telegram.0.communicate.requestChatId").val,
! message_id: getState("telegram.0.communicate.requestMessageId").val,
! }
! }
! });
! }
! });
П
р
и
н
а
ж
а
т
и
и
н
а
к
н
о
п
к
у
в
ы
с
в
е
ч
и
в
а
ю
т
с
я
ч
а
с
ы
,
н
о
д
а
л
ь
н
е
й
ш
а
я
к
о
м
а
н
д
а
н
е
п
р
о
х
о
д
и
т
.
В
т
е
л
е
г
р
а
м
м
е
в
и
с
и
т
к
о
м
а
н
д
а
"
м
е
н
ю
"
1226_______1.png
1226_______2.png -
Д
р
а
й
в
е
р
к
а
к
о
й
в
е
р
с
и
и
с
т
о
и
т
?
Д
о
л
ж
е
н
б
ы
т
ь
1.0.6,
с
у
ж
у
п
о
т
о
м
у
,
ч
т
о
у
т
е
б
я
в
о
б
ъ
е
к
т
а
х
т
е
л
е
г
р
а
м
м
а
н
е
т
telegram.0.communicate.requestMessageId.
Е
с
л
и
в
е
р
с
и
я
1.0.6,
т
о
н
а
д
о
у
д
а
л
и
т
ь
у
с
т
а
н
о
в
л
е
н
н
ы
й
д
р
а
й
в
е
р
и
е
щ
е
р
а
з
е
г
о
п
о
с
т
а
в
и
т
ь
,
ч
т
о
б
ы
п
о
я
в
и
л
с
я
в
ы
ш
е
у
к
а
з
а
н
н
ы
й
о
б
ъ
е
к
т
.
Б
е
з
н
е
г
о
inline
н
е
б
у
д
е
т
р
а
б
о
т
а
т
ь
.
Т
ы
в
к
о
д
е
к
а
к
р
а
з
п
ы
т
а
е
ш
ь
с
я
с
ч
и
т
а
т
ь
н
е
с
у
щ
е
с
т
в
у
ю
щ
и
й
о
б
ъ
е
к
т
message_id: getState("telegram.0.communicate.requestMessageId").val,
-
П
р
и
м
е
р
№
2
С
т
р
у
к
т
у
р
а
м
е
н
ю
и
д
е
й
с
т
в
и
я
! ```
`var button = [{name: '
м
е
н
ю
',button: ['
К
о
м
н
а
т
а
1','
К
о
м
н
а
т
а
2','
З
а
к
р
ы
т
ь
','
м
е
н
ю
']},
{name: '
К
о
м
н
а
т
а
1',button: ['
С
ц
е
н
а
р
и
и
','
Р
у
ч
н
о
е
у
п
р
а
в
л
е
н
и
е
','
Н
а
з
а
д
','
З
а
к
р
ы
т
ь
','
м
е
н
ю
']},
{name: '
С
ц
е
н
а
р
и
и
', button: ['
С
ц
е
н
а
1','
С
ц
е
н
а
2','
Н
а
з
а
д
','
З
а
к
р
ы
т
ь
','
К
о
м
н
а
т
а
1']},
{name: '
Р
у
ч
н
о
е
у
п
р
а
в
л
е
н
и
е
', button: ['
Д
е
й
с
т
в
и
е
3','
Д
е
й
с
т
в
и
е
4','
Н
а
з
а
д
','
З
а
к
р
ы
т
ь
','
К
о
м
н
а
т
а
1']},
{name: '
К
о
м
н
а
т
а
2', button: ['
Д
е
й
с
т
в
и
е
1','
Д
е
й
с
т
в
и
е
2','
Н
а
з
а
д
','
З
а
к
р
ы
т
ь
','
м
е
н
ю
']}
];
! var menuUp = '
м
е
н
ю
';
var first_tap = false;
! on({id: "telegram.0.communicate.request", ack: false, change: 'any'}, function (obj) {
command = obj.state.val.substring(obj.state.val.indexOf(']')+1);
user = obj.state.val.substring(obj.state.val.indexOf('[')+1,obj.state.val.indexOf(']'));
//************************************
//
м
е
н
ю
//************************************
var menu = {
reply_markup: {
inline_keyboard: [[],[]],
}
};log("message_id = " + getState("telegram.0.communicate.requestMessageId").val); log("menuUp = " + menuUp); if (command === 'меню') first_tap = true; if (command === 'Назад') command = menuUp; var but1 = getButtonArray(button, 'name', command).toString(); if (but1.length > 0) { // проверяем, что строка не пустая var but2 = but1.split(','); //преобразуем в массив menuUp = but2.pop(); //вырезаем последний элемент log ("but2 = " + JSON.stringify(but2)); if (but2.length > 0) { // проверяем что массив не пуст var index = 0; for (var i=0, len=but2.length; i <len; i++)/{/if/((i="">1)&&(index < 1)) index = ++index; menu.reply_markup.inline_keyboard[index].push({ text: but2[i], callback_data: but2[i]}); } log(JSON.stringify(menu.reply_markup.inline_keyboard)); if (first_tap) { sendTo('telegram.0', {user: user, text: 'Меню ' + command, reply_markup: menu.reply_markup}); first_tap = false; } else sendTo('telegram', { user: user, text: 'Меню ' + command, editMessageText: { options: { chat_id: getState("telegram.0.communicate.requestChatId").val, message_id: getState("telegram.0.communicate.requestMessageId").val, reply_markup: menu.reply_markup } } }); } } else log("but1 пуст");//************************************
//
К
о
м
а
н
д
ы
//************************************
//
и
щ
е
м
в
т
е
к
с
т
е
к
о
м
а
н
д
ы
if (command ==="
Д
е
й
с
т
в
и
е
1") {
//
т
у
т
к
о
д
ч
т
о
н
а
д
о
с
д
е
л
а
т
ь
CommandDone();
}! if (command ==="
З
а
к
р
ы
т
ь
") {
sendTo('telegram', {
user: user,
text: '
К
о
н
е
ц
',
editMessageText: {
options: {
chat_id: getState("telegram.0.communicate.requestChatId").val,
message_id: getState("telegram.0.communicate.requestMessageId").val,
}
}
});
}
});
! function CommandDone(){
sendTo('telegram', {
user: user,
text: '
В
ы
п
о
л
н
я
ю
...',
editMessageText: {
options: {
chat_id: getState("telegram.0.communicate.requestChatId").val,
message_id: getState("telegram.0.communicate.requestMessageId").val,
}
}
});
}
! function getButtonArray(obj, keyName, Name) {
var result = [];
for (var attr in obj) {
if (obj[attr] && typeof obj[attr] === 'object') {
result = result.concat(getButtonArray(obj[attr], keyName, Name));
}
if (attr === keyName && obj[attr] === Name) {
result.push(obj.button);
}
}
return result;
}</len;>! ЗЫ. Код до конца не оптимизирован, есть еще куда стремиться ;) ! Использую твое меню с небольшими доработками. Прошу помочь с редактированием сообщений. Такой код:~~[code]~~if (command ==="
Д
е
й
с
т
в
и
е
1") {
sendTo('telegram', {
user: user,
text: '
Ч
т
о
-
н
и
б
у
д
ь
н
а
п
и
с
а
н
о
',
editMessageText: {
options: {
chat_id: getState("telegram.0.communicate.requestChatId").val,
message_id: getState("telegram.0.communicate.requestMessageId").val,
}
}
});
}[/code]! меняет сообщение на "Что-нибудь написано" и затирает клавиатуру. ! А хотелось бы, чтобы клавиатура оставалась на месте, а вывод был в сообщение над клавиатурой. Вот так: ! ~~[img]~~[http://pics.4minipc.ru/images/2018/03/2 ... -19-56.png](http://pics.4minipc.ru/images/2018/03/28/2018-03-28_00-19-56.png)[/img] ! Буду благодарен за подсказку.[/i][/i] ``` -
В
а
ш
у
м
…
т
ь
......
О
б
н
о
в
и
л
Д
р
а
й
в
е
р
и
п
о
л
у
ч
и
л
в
о
т
э
т
о
telegram.0 2018-04-16 21:42:30.175 error polling_error:EFATAL, EFATAL: Error: read ECONNRESET
к
а
к
с
э
т
и
м
б
о
р
о
т
ь
с
я
. -
И
л
и
э
т
о
п
о
с
л
е
д
с
т
в
и
я
С
у
д
а
…
... -
https://github.com/Haba1234/ioBroker.telegram
с
т
а
в
ь
э
т
у
,
в
н
а
с
т
р
о
й
к
а
х
н
а
с
т
р
о
й
к
и
п
р
о
к
с
и
,
э
т
о
е
щ
ё
т
е
с
т
о
в
а
я
в
е
р
с
и
я
-
к
о
п
а
т
ь
с
ю
д
а
https://github.com/kirovilya/ioBroker.telegram
с
д
е
л
а
л
PR
в
о
с
н
о
в
н
о
й
р
е
п
о
з
и
т
о
р
и
й
,
ж
д
е
м
о
б
н
о
в
л
е
н
и
я
д
р
а
й
в
е
р
а
-
О
б
н
о
в
и
л
д
р
а
й
в
е
р
,
д
а
ж
е
н
а
с
т
р
о
и
л
п
р
о
к
с
и
…
...
Н
о
в
ы
и
т
о
г
е
......! host.GoldFish2 2018-05-01 19:57:28.888 info instance system.adapter.telegram.0 started with pid 7164
! host.GoldFish2 2018-05-01 19:57:27.868 info Restart adapter system.adapter.telegram.0 because enabled
! host.GoldFish2 2018-05-01 19:57:27.868 error instance system.adapter.telegram.0 terminated with code 0 (OK)
! host.GoldFish2 2018-05-01 19:57:27.868 error Caught by controller[1]: port: 443 }
! host.GoldFish2 2018-05-01 19:57:27.868 error Caught by controller[1]: address: '88.212.233.100',
! host.GoldFish2 2018-05-01 19:57:27.868 error Caught by controller[1]: syscall: 'connect',
! host.GoldFish2 2018-05-01 19:57:27.867 error Caught by controller[1]: errno: 'ETIMEDOUT',
! host.GoldFish2 2018-05-01 19:57:27.867 error Caught by controller[1]: code: 'ETIMEDOUT',
! host.GoldFish2 2018-05-01 19:57:27.867 error Caught by controller[1]: at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1087:14)
! host.GoldFish2 2018-05-01 19:57:27.867 error Caught by controller[1]: at exports._exceptionWithHostPort (util.js:1045:20)
! host.GoldFish2 2018-05-01 19:57:27.867 error Caught by controller[1]: at Object.exports._errnoException (util.js:1022:11)
! host.GoldFish2 2018-05-01 19:57:27.867 error Caught by controller[1]: { Error: connect ETIMEDOUT 88.212.233.100:443
! host.GoldFish2 2018-05-01 19:57:27.867 error Caught by controller[1]: port: 443 }
! host.GoldFish2 2018-05-01 19:57:27.867 error Caught by controller[1]: address: '88.212.233.100',
! host.GoldFish2 2018-05-01 19:57:27.867 error Caught by controller[1]: syscall: 'connect',
! host.GoldFish2 2018-05-01 19:57:27.867 error Caught by controller[1]: errno: 'ETIMEDOUT',
! host.GoldFish2 2018-05-01 19:57:27.867 error Caught by controller[1]: code: 'ETIMEDOUT',
! host.GoldFish2 2018-05-01 19:57:27.867 error Caught by controller[1]: at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1087:14)
! host.GoldFish2 2018-05-01 19:57:27.867 error Caught by controller[1]: at exports._exceptionWithHostPort (util.js:1045:20)
! host.GoldFish2 2018-05-01 19:57:27.867 error Caught by controller[1]: at Object.exports._errnoException (util.js:1022:11)
! host.GoldFish2 2018-05-01 19:57:27.867 error Caught by controller[1]: { Error: connect ETIMEDOUT 88.212.233.100:443
! host.GoldFish2 2018-05-01 19:57:27.867 error Caught by controller[1]: port: 443 }
! host.GoldFish2 2018-05-01 19:57:27.867 error Caught by controller[1]: address: '88.212.233.100',
! host.GoldFish2 2018-05-01 19:57:27.867 error Caught by controller[1]: syscall: 'connect',
! host.GoldFish2 2018-05-01 19:57:27.867 error Caught by controller[1]: errno: 'ETIMEDOUT',
! host.GoldFish2 2018-05-01 19:57:27.867 error Caught by controller[1]: code: 'ETIMEDOUT',
! host.GoldFish2 2018-05-01 19:57:27.867 error Caught by controller[1]: at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1087:14)
! host.GoldFish2 2018-05-01 19:57:27.867 error Caught by controller[1]: at exports._exceptionWithHostPort (util.js:1045:20)
! host.GoldFish2 2018-05-01 19:57:27.867 error Caught by controller[1]: at Object.exports._errnoException (util.js:1022:11)
! host.GoldFish2 2018-05-01 19:57:27.867 error Caught by controller[1]: { Error: connect ETIMEDOUT 88.212.233.100:443
! host.GoldFish2 2018-05-01 19:57:27.867 error Caught by controller[0]: See https://github.com/yagop/node-telegram-
…
issues/319. at module.js:570:32
! host.GoldFish2 2018-05-01 19:57:27.866 error Caught by controller[0]: In the future, you will have to enable it yourself.
! host.GoldFish2 2018-05-01 19:57:27.866 error Caught by controller[0]: Tue, 01 May 2018 09:57:05 GMT node-telegram-bot-api deprecated Automatic enabling of cancellation of promises is deprecated.
! telegram.0 2018-05-01 19:57:27.354 error Error: connect ETIMEDOUT 88.212.233.100:443 at Object.exports._errnoException (util.js:1022:11) at exports._exceptionWithHostPort (util.js:1045:20) at TCPConnectWrap.afterConnect [as oncom
! telegram.0 2018-05-01 19:57:27.354 error uncaught exception: connect ETIMEDOUT 88.212.233.100:443
! telegram.0 2018-05-01 19:57:27.354 error Error: connect ETIMEDOUT 88.212.233.100:443 at Object.exports._errnoException (util.js:1022:11) at exports._exceptionWithHostPort (util.js:1045:20) at TCPConnectWrap.afterConnect [as oncom
! telegram.0 2018-05-01 19:57:27.354 error uncaught exception: connect ETIMEDOUT 88.212.233.100:443
! telegram.0 2018-05-01 19:57:27.354 error Error: connect ETIMEDOUT 88.212.233.100:443 at Object.exports._errnoException (util.js:1022:11) at exports._exceptionWithHostPort (util.js:1045:20) at TCPConnectWrap.afterConnect [as oncom
! telegram.0 2018-05-01 19:57:27.353 error uncaught exception: connect ETIMEDOUT 88.212.233.100:443
! telegram.0 2018-05-01 19:57:06.323 info starting. Version 1.2.3 in C:/ioBroker/node_modules/iobroker.telegram, node: v6.9.5
! host.GoldFish2 2018-05-01 19:56:56.386 info instance system.adapter.telegram.0 started with pid 7240
! host.GoldFish2 2018-05-01 19:56:55.357 info Restart adapter system.adapter.telegram.0 because enabled
К
у
д
а
р
ы
т
ь
д
а
л
ь
ш
е
???
И
л
и
к
а
к
о
й
п
р
о
к
с
и
и
с
п
о
л
ь
з
о
в
а
т
ь
?? -
Д
о
б
р
ы
й
д
е
н
ь
т
о
ж
е
с
ы
п
я
т
с
я
о
ш
и
б
к
и
п
р
и
н
а
с
т
р
о
й
к
и
п
р
о
к
с
и
:! host.orangepipcplus 2018-05-09 12:22:13.425 error instance system.adapter.telegram.0 terminated with code 0 (OK)
! Caught 2018-05-09 12:22:13.425 error by controller[3]: at TCP.onread (net.js:607:20) code: 'EAUTHNOTSUPPORT' }
! Caught 2018-05-09 12:22:13.425 error by controller[3]: at Socket.Readable.push (_stream_readable.js:208:10)
! Caught 2018-05-09 12:22:13.425 error by controller[3]: at readableAddChunk (_stream_readable.js:250:11)
! Caught 2018-05-09 12:22:13.424 error by controller[3]: at addChunk (_stream_readable.js:263:12)
! Caught 2018-05-09 12:22:13.424 error by controller[3]: at Socket.emit (events.js:211:7)
! Caught 2018-05-09 12:22:13.424 error by controller[3]: at emitOne (events.js:116:13)
! Caught 2018-05-09 12:22:13.424 error by controller[3]: at Socket.Parser.__onData (/opt/iobroker/node_modules/iobroker.telegram/node_modules/socksv5/lib/client.parser.js:33:10)
! Caught 2018-05-09 12:22:13.423 error by controller[3]: at Parser._onData (/opt/iobroker/node_modules/iobroker.telegram/node_modules/socksv5/lib/client.parser.js:85:14)
! Caught 2018-05-09 12:22:13.423 error by controller[3]: at Parser.emit (events.js:211:7)
! Caught 2018-05-09 12:22:13.423 error by controller[3]: at emitOne (events.js:116:13)
! Caught 2018-05-09 12:22:13.423 error by controller[3]: at Parser. <anonymous>(/opt/iobroker/node_modules/iobroker.telegram/node_modules/socksv5/lib/client.js:102:15)
! Caught 2018-05-09 12:22:13.422 error by controller[3]: { Error: Authentication method mismatch
! Caught 2018-05-09 12:22:13.422 error by controller[2]: at TCP.onread (net.js:607:20) code: 'EAUTHNOTSUPPORT' }
! Caught 2018-05-09 12:22:13.422 error by controller[2]: at Socket.Readable.push (_stream_readable.js:208:10)
! Caught 2018-05-09 12:22:13.422 error by controller[2]: at readableAddChunk (_stream_readable.js:250:11)
! Caught 2018-05-09 12:22:13.421 error by controller[2]: at addChunk (_stream_readable.js:263:12)
! Caught 2018-05-09 12:22:13.421 error by controller[2]: at Socket.emit (events.js:211:7)
! Caught 2018-05-09 12:22:13.421 error by controller[2]: at emitOne (events.js:116:13)
! Caught 2018-05-09 12:22:13.421 error by controller[2]: at Socket.Parser.__onData (/opt/iobroker/node_modules/iobroker.telegram/node_modules/socksv5/lib/client.parser.js:33:10)
! Caught 2018-05-09 12:22:13.420 error by controller[2]: at Parser._onData (/opt/iobroker/node_modules/iobroker.telegram/node_modules/socksv5/lib/client.parser.js:85:14)
! Caught 2018-05-09 12:22:13.420 error by controller[2]: at Parser.emit (events.js:211:7)
! Caught 2018-05-09 12:22:13.420 error by controller[2]: at emitOne (events.js:116:13)
! Caught 2018-05-09 12:22:13.420 error by controller[2]: at Parser. <anonymous>(/opt/iobroker/node_modules/iobroker.telegram/node_modules/socksv5/lib/client.js:102:15)
! Caught 2018-05-09 12:22:13.420 error by controller[2]: { Error: Authentication method mismatch
! Caught 2018-05-09 12:22:13.419 error by controller[1]: at TCP.onread (net.js:607:20) code: 'EAUTHNOTSUPPORT' }
! Caught 2018-05-09 12:22:13.419 error by controller[1]: at Socket.Readable.push (_stream_readable.js:208:10)
! Caught 2018-05-09 12:22:13.419 error by controller[1]: at readableAddChunk (_stream_readable.js:250:11)
! Caught 2018-05-09 12:22:13.419 error by controller[1]: at addChunk (_stream_readable.js:263:12)
! Caught 2018-05-09 12:22:13.418 error by controller[1]: at Socket.emit (events.js:211:7)
! Caught 2018-05-09 12:22:13.418 error by controller[1]: at emitOne (events.js:116:13)
! Caught 2018-05-09 12:22:13.418 error by controller[1]: at Socket.Parser.__onData (/opt/iobroker/node_modules/iobroker.telegram/node_modules/socksv5/lib/client.parser.js:33:10)
! Caught 2018-05-09 12:22:13.418 error by controller[1]: at Parser._onData (/opt/iobroker/node_modules/iobroker.telegram/node_modules/socksv5/lib/client.parser.js:85:14)
! Caught 2018-05-09 12:22:13.417 error by controller[1]: at Parser.emit (events.js:211:7)
! Caught 2018-05-09 12:22:13.417 error by controller[1]: at emitOne (events.js:116:13)
! Caught 2018-05-09 12:22:13.417 error by controller[1]: at Parser. <anonymous>(/opt/iobroker/node_modules/iobroker.telegram/node_modules/socksv5/lib/client.js:102:15)
! Caught 2018-05-09 12:22:13.417 error by controller[1]: { Error: Authentication method mismatch
! Caught 2018-05-09 12:22:13.416 error by controller[0]: See https://github.com/yagop/node-telegram-
…
issues/319. at module.js:652:30
! Caught 2018-05-09 12:22:13.416 error by controller[0]: In the future, you will have to enable it yourself.
! Caught 2018-05-09 12:22:13.415 error by controller[0]: Wed, 09 May 2018 02:22:11 GMT node-telegram-bot-api deprecated Automatic enabling of cancellation of promises is deprecated.
! telegram.0 2018-05-09 12:22:13.324 info terminating
! telegram.0 2018-05-09 12:22:12.816 error at TCP.onread (net.js:607:20)
! telegram.0 2018-05-09 12:22:12.816 error at Socket.Readable.push (_stream_readable.js:208:10)
! telegram.0 2018-05-09 12:22:12.816 error at readableAddChunk (_stream_readable.js:250:11)
! telegram.0 2018-05-09 12:22:12.816 error at addChunk (_stream_readable.js:263:12)
! telegram.0 2018-05-09 12:22:12.816 error at Socket.emit (events.js:211:7)
! telegram.0 2018-05-09 12:22:12.816 error at emitOne (events.js:116:13)
! telegram.0 2018-05-09 12:22:12.816 error at Socket.Parser.__onData (/opt/iobroker/node_modules/iobroker.telegram/node_modules/socksv5/lib/client.parser.js:33:10)
! telegram.0 2018-05-09 12:22:12.816 error at Parser._onData (/opt/iobroker/node_modules/iobroker.telegram/node_modules/socksv5/lib/client.parser.js:85:14)
! telegram.0 2018-05-09 12:22:12.816 error at Parser.emit (events.js:211:7)
! telegram.0 2018-05-09 12:22:12.816 error at emitOne (events.js:116:13)
! telegram.0 2018-05-09 12:22:12.816 error at Parser. <anonymous>(/opt/iobroker/node_modules/iobroker.telegram/node_modules/socksv5/lib/client.js:102:15)
! telegram.0 2018-05-09 12:22:12.816 error Error: Authentication method mismatch
! telegram.0 2018-05-09 12:22:12.815 error uncaught exception: Authentication method mismatch
! telegram.0 2018-05-09 12:22:12.809 error at TCP.onread (net.js:607:20)
! telegram.0 2018-05-09 12:22:12.809 error at Socket.Readable.push (_stream_readable.js:208:10)
! telegram.0 2018-05-09 12:22:12.809 error at readableAddChunk (_stream_readable.js:250:11)
! telegram.0 2018-05-09 12:22:12.809 error at addChunk (_stream_readable.js:263:12)
! telegram.0 2018-05-09 12:22:12.809 error at Socket.emit (events.js:211:7)
! telegram.0 2018-05-09 12:22:12.809 error at emitOne (events.js:116:13)
! telegram.0 2018-05-09 12:22:12.809 error at Socket.Parser.__onData (/opt/iobroker/node_modules/iobroker.telegram/node_modules/socksv5/lib/client.parser.js:33:10)
! telegram.0 2018-05-09 12:22:12.809 error at Parser._onData (/opt/iobroker/node_modules/iobroker.telegram/node_modules/socksv5/lib/client.parser.js:85:14)
! telegram.0 2018-05-09 12:22:12.809 error at Parser.emit (events.js:211:7)
! telegram.0 2018-05-09 12:22:12.809 error at emitOne (events.js:116:13)
! telegram.0 2018-05-09 12:22:12.809 error at Parser. <anonymous>(/opt/iobroker/node_modules/iobroker.telegram/node_modules/socksv5/lib/client.js:102:15)
! telegram.0 2018-05-09 12:22:12.809 error Error: Authentication method mismatch
! telegram.0 2018-05-09 12:22:12.808 error uncaught exception: Authentication method mismatch
! telegram.0 2018-05-09 12:22:12.798 error at TCP.onread (net.js:607:20)
! telegram.0 2018-05-09 12:22:12.798 error at Socket.Readable.push (_stream_readable.js:208:10)
! telegram.0 2018-05-09 12:22:12.798 error at readableAddChunk (_stream_readable.js:250:11)
! telegram.0 2018-05-09 12:22:12.798 error at addChunk (_stream_readable.js:263:12)
! telegram.0 2018-05-09 12:22:12.798 error at Socket.emit (events.js:211:7)
! telegram.0 2018-05-09 12:22:12.798 error at emitOne (events.js:116:13)
! telegram.0 2018-05-09 12:22:12.798 error at Socket.Parser.__onData (/opt/iobroker/node_modules/iobroker.telegram/node_modules/socksv5/lib/client.parser.js:33:10)
! telegram.0 2018-05-09 12:22:12.798 error at Parser._onData (/opt/iobroker/node_modules/iobroker.telegram/node_modules/socksv5/lib/client.parser.js:85:14)
! telegram.0 2018-05-09 12:22:12.798 error at Parser.emit (events.js:211:7)
! telegram.0 2018-05-09 12:22:12.798 error at emitOne (events.js:116:13)
! telegram.0 2018-05-09 12:22:12.798 error at Parser. <anonymous>(/opt/iobroker/node_modules/iobroker.telegram/node_modules/socksv5/lib/client.js:102:15)
! telegram.0 2018-05-09 12:22:12.798 error Error: Authentication method mismatch
! telegram.0 2018-05-09 12:22:12.796 error uncaught exception: Authentication method mismatch</anonymous></anonymous></anonymous></anonymous></anonymous></anonymous>
К
т
о
п
о
д
с
к
а
ж
е
т
г
д
е
к
о
п
а
т
ь
? -
П
о
х
о
ж
е
,
ч
т
о
-
т
о
н
е
т
а
к
с
п
р
о
к
с
и
.
П
о
п
р
о
б
у
й
т
а
к
о
й
п
р
о
к
с
и
:Server: socks.kuzmitch.ru
Port: 1080
User: socksuser
Pass: heropass2
-
П
о
х
о
ж
е
,
ч
т
о
-
т
о
н
е
т
а
к
с
п
р
о
к
с
и
.
П
о
п
р
о
б
у
й
т
а
к
о
й
п
р
о
к
с
и
:Server: socks.kuzmitch.ru
Port: 1080
User: socksuser
Pass: heropass2 `
И
с
э
т
и
м
н
е
х
о
т
и
т
н
о
о
ш
и
б
к
а
у
ж
е
д
р
у
г
а
я
,
т
а
к
а
я
ж
е
к
а
к
и
б
е
з
п
р
о
к
с
и
! telegram.0 2018-05-11 04:33:59.911 error polling_error:EFATAL, EFATAL: Error: self signed certificate
! telegram.0 2018-05-11 04:33:58.560 info starting. Version 1.2.3 in /opt/iobroker/node_modules/iobroker.telegram, node: v8.11.1
п
р
и
ч
е
м
к
о
г
д
а
о
с
т
а
н
а
в
л
и
в
а
е
ш
ь
б
о
т
а
Telegramm
с
ы
п
я
т
с
я
о
ш
и
б
к
и
! host.orangepipcplus 2018-05-11 04:54:45.766 info instance system.adapter.telegram.0 terminated with code 0 (OK)
! Caught 2018-05-11 04:54:45.766 error by controller[1]: at process._tickCallback (internal/process/next_tick.js:180:9)
! Caught 2018-05-11 04:54:45.765 error by controller[1]: at _combinedTickCallback (internal/process/next_tick.js:138:11)
! Caught 2018-05-11 04:54:45.765 error by controller[1]: at emitErrorNT (internal/streams/destroy.js:64:8)
! Caught 2018-05-11 04:54:45.765 error by controller[1]: at TLSSocket.emit (events.js:211:7)
! Caught 2018-05-11 04:54:45.765 error by controller[1]: at emitOne (events.js:116:13)
! Caught 2018-05-11 04:54:45.764 error by controller[1]: at TLSSocket.socketErrorListener (_http_client.js:387:9)
! Caught 2018-05-11 04:54:45.764 error by controller[1]: at ClientRequest.emit (events.js:211:7)
! Caught 2018-05-11 04:54:45.764 error by controller[1]: at emitOne (events.js:116:13)
! Caught 2018-05-11 04:54:45.764 error by controller[1]: at Request.onRequestError (/opt/iobroker/node_modules/iobroker.telegram/node_modules/node-telegram-bot-api/node_modules/request/request.js:878:8)
! Caught 2018-05-11 04:54:45.763 error by controller[1]: at Request.emit (events.js:211:7)
! Caught 2018-05-11 04:54:45.763 error by controller[1]: at emitOne (events.js:116:13)
! Caught 2018-05-11 04:54:45.763 error by controller[1]: at self.callback (/opt/iobroker/node_modules/iobroker.telegram/node_modules/node-telegram-bot-api/node_modules/request/request.js:186:22)
! Caught 2018-05-11 04:54:45.763 error by controller[1]: at Request.RP$callback [as _callback] (/opt/iobroker/node_modules/iobroker.telegram/node_modules/node-telegram-bot-api/node_modules/request-promise/node_modules/request-promise-
! Caught 2018-05-11 04:54:45.763 error by controller[1]: at Request.plumbing.callback (/opt/iobroker/node_modules/iobroker.telegram/node_modules/node-telegram-bot-api/node_modules/request-promise/node_modules/request-promise-core/lib/
! Caught 2018-05-11 04:54:45.762 error by controller[1]: at new RequestError (/opt/iobroker/node_modules/iobroker.telegram/node_modules/node-telegram-bot-api/node_modules/request-promise/node_modules/request-promise-core/lib/errors.js
! Caught 2018-05-11 04:54:45.762 error by controller[1]: Unhandled rejection RequestError: Error: self signed certificate
! Caught 2018-05-11 04:54:45.762 error by controller[1]: at process._tickCallback (internal/process/next_tick.js:180:9)
! Caught 2018-05-11 04:54:45.762 error by controller[1]: at _combinedTickCallback (internal/process/next_tick.js:138:11)
! Caught 2018-05-11 04:54:45.761 error by controller[1]: at emitErrorNT (internal/streams/destroy.js:64:8)
! Caught 2018-05-11 04:54:45.761 error by controller[1]: at TLSSocket.emit (events.js:211:7)
! Caught 2018-05-11 04:54:45.761 error by controller[1]: at emitOne (events.js:116:13)
! Caught 2018-05-11 04:54:45.760 error by controller[1]: at TLSSocket.socketErrorListener (_http_client.js:387:9)
! Caught 2018-05-11 04:54:45.760 error by controller[1]: at ClientRequest.emit (events.js:211:7)
! Caught 2018-05-11 04:54:45.760 error by controller[1]: at emitOne (events.js:116:13)
! Caught 2018-05-11 04:54:45.759 error by controller[1]: at Request.onRequestError (/opt/iobroker/node_modules/iobroker.telegram/node_modules/node-telegram-bot-api/node_modules/request/request.js:878:8)
! Caught 2018-05-11 04:54:45.759 error by controller[1]: at Request.emit (events.js:211:7)
! Caught 2018-05-11 04:54:45.759 error by controller[1]: at emitOne (events.js:116:13)
! Caught 2018-05-11 04:54:45.759 error by controller[1]: at self.callback (/opt/iobroker/node_modules/iobroker.telegram/node_modules/node-telegram-bot-api/node_modules/request/request.js:186:22)
! Caught 2018-05-11 04:54:45.758 error by controller[1]: at Request.RP$callback [as _callback] (/opt/iobroker/node_modules/iobroker.telegram/node_modules/node-telegram-bot-api/node_modules/request-promise/node_modules/request-promise-
! Caught 2018-05-11 04:54:45.758 error by controller[1]: at Request.plumbing.callback (/opt/iobroker/node_modules/iobroker.telegram/node_modules/node-telegram-bot-api/node_modules/request-promise/node_modules/request-promise-core/lib/
! Caught 2018-05-11 04:54:45.758 error by controller[1]: at new RequestError (/opt/iobroker/node_modules/iobroker.telegram/node_modules/node-telegram-bot-api/node_modules/request-promise/node_modules/request-promise-core/lib/errors.js
! Caught 2018-05-11 04:54:45.758 error by controller[1]: Unhandled rejection RequestError: Error: self signed certificate
! Caught 2018-05-11 04:54:45.757 error by controller[0]: See https://github.com/yagop/node-telegram-
…
issues/319. at module.js:652:30
! Caught 2018-05-11 04:54:45.757 error by controller[0]: In the future, you will have to enable it yourself.
! Caught 2018-05-11 04:54:45.756 error by controller[0]: Thu, 10 May 2018 18:54:28 GMT node-telegram-bot-api deprecated Automatic enabling of cancellation of promises is deprecated. -
у
м
е
н
я
д
р
а
й
в
е
р
д
а
ж
е
ч
е
р
е
з
в
п
н
н
е
п
о
ш
е
л
,
г
о
р
и
т
ж
ё
л
т
ы
й
и
н
и
х
р
е
н
а
н
е
р
а
б
о
т
а
е
т
-
у
м
е
н
я
о
д
и
н
и
з
п
р
о
в
Р
Т
.
н
е
р
а
б
о
т
а
е
т
и
в
с
ё
Hey! Du scheinst an dieser Unterhaltung interessiert zu sein, hast aber noch kein Konto.
Hast du es satt, bei jedem Besuch durch die gleichen Beiträge zu scrollen? Wenn du dich für ein Konto anmeldest, kommst du immer genau dorthin zurück, wo du zuvor warst, und kannst dich über neue Antworten benachrichtigen lassen (entweder per E-Mail oder Push-Benachrichtigung). Du kannst auch Lesezeichen speichern und Beiträge positiv bewerten, um anderen Community-Mitgliedern deine Wertschätzung zu zeigen.
Mit deinem Input könnte dieser Beitrag noch besser werden 💗
Registrieren Anmelden

