-
Hi. I am using v1 api and i tried replying to dm received with a text(link incorporated) but the link seem to be missing in the UI. ...
const recipient_id = someTweeterUserIdFromReceivedMessage
const authUrl = server.generatedAuthLink();
text = `${authUrl}\n\n Click the link above to connect to sync your workspace`;
await t.v1.sendDm({
recipient_id,
text,
});
.... Bot replies with ERROR error ApiResponseError: Request failed with code 403 - There was an error sending your message: Your message cannot be blank.. (Twitter code 151)
at RequestHandlerHelper.createResponseError (/var/task/node_modules/twitter-api-v2/dist/client-mixins/request-handler.helper.js:99:16)
at RequestHandlerHelper.onResponseEndHandler (/var/task/node_modules/twitter-api-v2/dist/client-mixins/request-handler.helper.js:248:25)
... |
Beta Was this translation helpful? Give feedback.
Answered by
waptik
Apr 25, 2022
Replies: 1 comment
-
I fixed. The issue originated on my part. Seems like I have a helper function to format text and that function removes links as well. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
waptik
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I fixed. The issue originated on my part. Seems like I have a helper function to format text and that function removes links as well.
Now it works