When I add await to this command
ctx.sendChatAction("typing");
My tests start failing with:
TelegramError: 500: Internal Server Error
at Telegram.callApi (.\node_modules\telegraf\lib\core\network\client.js:288:19)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async .\bot\telegrafCommandTest.spec.js:35:7
at async execute (.\node_modules\telegraf\lib\composer.js:485:17)
at async .\node_modules\telegraf\lib\composer.js:486:21
at async execute (.\node_modules\telegraf\lib\composer.js:485:17)
at async .\node_modules\telegraf\lib\composer.js:486:21
at async execute (.\node_modules\telegraf\lib\composer.js:485:17)
at async .\node_modules\telegraf\lib\composer.js:486:21
at async execute (.\node_modules\telegraf\lib\composer.js:485:17)
at async .\node_modules\telegraf\lib\composer.js:486:21
at async execute (.\node_modules\telegraf\lib\composer.js:485:17)
at async .\node_modules\telegraf\lib\composer.js:486:21
at async execute (.\node_modules\telegraf\lib\composer.js:485:17)
at async .\node_modules\telegraf\lib\composer.js:486:21
at async execute (.\node_modules\telegraf\lib\composer.js:485:17)
at async .\node_modules\telegraf\lib\composer.js:486:21
at async execute (.\node_modules\telegraf\lib\composer.js:485:17)
at async .\node_modules\telegraf\lib\composer.js:486:21
at async execute (.\node_modules\telegraf\lib\composer.js:485:17)
at async execute (.\node_modules\telegraf\lib\composer.js:485:17)
at async execute (.\node_modules\telegraf\lib\composer.js:485:17)
at async execute (.\node_modules\telegraf\lib\composer.js:485:17)
at async execute (.\node_modules\telegraf\lib\composer.js:485:17)
at async execute (.\node_modules\telegraf\lib\composer.js:485:17)
at async .\node_modules\p-timeout\index.js:50:13 {
response: { error_code: 500, description: 'Internal Server Error' },
on: {
method: 'sendChatAction',
payload: { chat_id: 1, action: 'typing', message_thread_id: undefined }
}
}
Is this unsupported?
When I add
awaitto this commandMy tests start failing with:
Is this unsupported?