Skip to content

anonym message-"bomb" kills bot #266

@umbm

Description

@umbm

For testing I sent a large text to the bot and the bot doesnt work anymore.

I activated #define TELEGRAM_DEBUG 1 in UniversalTelegramBot.h and got this:

incoming message length 1500
Creating DynamicJsonBuffer
Failed to parse update, the message could be too big for the buffer. Error code: IncompleteInput
Closing client
GET Update Messages
[BOT]Connecting to server
sending: bot2 . . . [cut]

This runs in an infinite loop and the bot does not work anymore.

Biggest problem:
I sent the too large message from an not connected account to the password protected bot and this runs in this issue.
Means: everybody who finds the bot can kill it with a simple too large text-message.

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