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

Support character limit for line notify #320

Merged
merged 3 commits into from
Jul 1, 2021

Conversation

nsano-rururu
Copy link
Collaborator

Line Notify found that the response body size limit was 1,000 bytes, so I decided not to set the excess value in the response body.

body += '\n----------------------------------------\n'
if len(body) > 999:
body = body[0:900] + '\n *message was cropped according to line notify embed description limits!* '
body += '```'
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is the purpose of the 3 backticks at the end of the body, on this PR and the one for Chatwork?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I erased. It's garbage. Discord also has similar trash. discord will be fixed tomorrow.

@jertel jertel merged commit 6a65247 into jertel:master Jul 1, 2021
@nsano-rururu nsano-rururu deleted the line_limit_message branch July 1, 2021 23:26
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 21, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants