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

Fall back to sendMessage if the response to /events is too long #106

Open
nmlorg opened this issue Aug 7, 2024 · 0 comments
Open

Fall back to sendMessage if the response to /events is too long #106

nmlorg opened this issue Aug 7, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@nmlorg
Copy link
Owner

nmlorg commented Aug 7, 2024

In response to /events:

2024-08-06 15:56:45,562 ERROR loop.py:72] Ignoring uncaught error while dispatching:
Traceback (most recent call last):
  File "lib/python3.10/site-packages/ntelebot/loop.py", line 70, in run
    callback()
  File "lib/python3.10/site-packages/metabot/multibot.py", line 143, in __call__
    msg.reply(ctx)
  File "lib/python3.10/site-packages/metabot/util/msgbuilder.py", line 89, in reply
    return ctx.reply_html('\n\n'.join(lines), disable_web_page_preview=True, **kwargs)
  File "lib/python3.10/site-packages/ntelebot/preprocess.py", line 137, in reply_html
    return self.reply_text(text, *args, **kwargs)
  File "lib/python3.10/site-packages/ntelebot/preprocess.py", line 183, in reply_text
    return method(chat_id=self.chat['id'], **kwargs)
  File "lib/python3.10/site-packages/ntelebot/bot.py", line 71, in __call__
    raise ntelebot.errors.Error(data)
ntelebot.errors.Error: {'ok': False, 'error_code': 400, 'description': 'Bad Request: message caption is too long'}

 
I believe this is just another form of #76 (see f341e83).

@nmlorg nmlorg added the bug Something isn't working label Aug 7, 2024
@nmlorg nmlorg self-assigned this Aug 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant