Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Phoscur opened this issue Dec 19, 2023 · 1 comment
Open

Comments

@Phoscur
Copy link

Phoscur commented Dec 19, 2023

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?

@Phoscur
Copy link
Author

Phoscur commented Dec 22, 2023

Oh I see, this could be solved by merging 24b7a55 I'll try that fork then!

Edit: hum it's pretty outdated ... better merge this somehow... #51

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant