I've set up this bot a week ago and it worked correctly. After updating to the latest version (where config.js was presented), I've got the following error message in logs when bot tries to redirect my message to a group:
Aug 17 13:28:47 support-bot node[759]: (node:759) UnhandledPromiseRejectionWarning:
ReferenceError: ctx is not defined
Aug 17 13:28:47 support-bot node[759]: at customerChat (/home/addappter/telegram-support-bot/bin/ticket_handler.js:43:22)
Aug 17 13:28:47 support-bot node[759]: at /home/addappter/telegram-support-bot/bin/ticket_handler.js:11:13
Aug 17 13:28:47 support-bot node[759]: at <anonymous>
Aug 17 13:28:47 support-bot node[759]: at process._tickCallback (internal/process/next_tick.js:188:7)
Aug 17 13:28:47 support-bot node[759]: (node:759)
UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which
Aug 17 13:28:47 support-bot node[759]: (node:759) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit c