Skip to content

Conversation

Daniel-97
Copy link

@Daniel-97 Daniel-97 commented Aug 18, 2022

  • eslint tests pass
  • I have run npm run doc

Description

This PR try to solve the issue with the error "Message too long" when sending message larger than 4096 characters.
I have added an additional function sendLargeMessage() for sending message larger than 4096 char.
The max message size right now is 4096 since there is no specification on the official telegram documentation of the maximum message size for premium account (i assume the limit is the same as a non-premium account).

This PR is a better implementation of the closed PR #992 since:

  • This is an additional functionality and will not break existing code
  • The function don't use async/await so it doesn't break current code style.

References

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

Successfully merging this pull request may close these issues.

1 participant