fr0gger / vthunting

Vthunting is a tiny script used to generate report about Virus Total hunting and send it by email, slack or telegram.
MIT License
158 stars 42 forks source link

Update vthunting.py #13

Closed fareedfauzi closed 1 year ago

fareedfauzi commented 1 year ago

The limit length of message for Telegram API is 4096 characters. If it exceed this length, Telegram API will return error, thus no message will comes in. This code ensures that the messages you send are within the limits imposed by the Telegram API by splitting the result in "report" to 4096 characters.

fareedfauzi commented 1 year ago

Exceed limit characters:

image

Ref: https://bugs.telegram.org/c/1423

Splitting into 4096 characters per message:

In my case here, the long message (report) will split into 4 chunks of messages

image

image

fr0gger commented 1 year ago

Great, thanks for the PR, they must have changed that lately. :)