Skip to content

sendChatAction("typing") - TelegramError: 500: Internal Server Error #84

@Phoscur

Description

@Phoscur

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions