Skip to content
This repository was archived by the owner on Oct 21, 2023. It is now read-only.
This repository was archived by the owner on Oct 21, 2023. It is now read-only.

Error: next(ctx) called with invalid context #18

@lgg

Description

@lgg

Tried:

npm install micro-bot
npm init bot smart-bot
yarn create bot smart-bot
micro-bot -t TOKEN index.js

Bot started but got error:

Output:

Failed to fetch updates. Waiting: 1s request to https://api.telegram.org/tokenhere/getUpdates?offset=340740293&limit=100&timeout=30 failed, reason: connect ETIMEDOUT 149.154.167.220:443
μ-bot: Unhandled error Error: next(ctx) called with invalid context
    at execute (D:\dev\temp\rtumireaprofkombot\node_modules\telegraf\composer.js:301:33)
    at D:\dev\temp\rtumireaprofkombot\node_modules\telegraf\composer.js:298:14
    at execute (C:\Users\Фёдор\AppData\Roaming\npm\node_modules\micro-bot\node_modules\telegraf\composer.js:313:13)
    at Promise.resolve.handler (C:\Users\Фёдор\AppData\Roaming\npm\node_modules\micro-bot\node_modules\telegraf\composer.js:313:49)
    at C:\Users\Фёдор\AppData\Roaming\npm\node_modules\micro-bot\node_modules\telegraf\composer.js:114:56
    at execute (C:\Users\Фёдор\AppData\Roaming\npm\node_modules\micro-bot\node_modules\telegraf\composer.js:313:13)
    at C:\Users\Фёдор\AppData\Roaming\npm\node_modules\micro-bot\node_modules\telegraf\composer.js:298:14
    at Telegraf.handleUpdate (C:\Users\Фёдор\AppData\Roaming\npm\node_modules\micro-bot\node_modules\telegraf\telegraf.js:155:29)
    at Promise.all.updates.map (C:\Users\Фёдор\AppData\Roaming\npm\node_modules\micro-bot\node_modules\telegraf\telegraf.js:140:65)
    at Array.map (<anonymous>)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions