We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hi! 👋
Firstly, thanks for your work on this project! 🙂
In documentation https://yandex.ru/dev/dialogs/alice/doc/response-card-bigimage.html at current moment max description value is 1024 symbols, and in current code description limited by 256 symbols.
I used patch-package to patch alice-renderer@1.5.0 for the project I'm working on.
alice-renderer@1.5.0
Here is the diff that solved my problem:
diff --git a/node_modules/alice-renderer/src/image.js b/node_modules/alice-renderer/src/image.js index b64b7e8..c1f7883 100644 --- a/node_modules/alice-renderer/src/image.js +++ b/node_modules/alice-renderer/src/image.js @@ -4,7 +4,7 @@ const {truncate} = require('./utils'); const MAX_TITLE_LENGTH = 128; -const MAX_DESCRIPTION_LENGTH = 256; +const MAX_DESCRIPTION_LENGTH = 1024; // Use symbols to ignore these keys in JSON.stringify const hasInitialTitle = Symbol('hasInitialTitle');
The text was updated successfully, but these errors were encountered:
Hi! Good point. Could you create pull request for that?
Sorry, something went wrong.
No branches or pull requests
Hi! 👋
Firstly, thanks for your work on this project! 🙂
In documentation https://yandex.ru/dev/dialogs/alice/doc/response-card-bigimage.html at current moment max description value is 1024 symbols, and in current code description limited by 256 symbols.
I used patch-package to patch
alice-renderer@1.5.0
for the project I'm working on.Here is the diff that solved my problem:
The text was updated successfully, but these errors were encountered: