We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0a1302f commit 18a017fCopy full SHA for 18a017f
src/bot.js
@@ -15,13 +15,14 @@ const retweet = () => {
15
const params = {
16
q: config.query,
17
result_type: config.result_type,
18
- lang: config.lang
+ lang: config.lang,
19
+ tweet_mode: "extended"
20
};
21
22
TwitterBot.get('search/tweets', params, (err, data) => {
23
// when no errors
24
if (!err) {
- if (data.statuses[0].text.split('#').length - 1 === 1) {
25
+ if (data.statuses[0].full_text.split('#').length - 1 === 1) {
26
// if there is only one hashtag get the tweet's ID
27
let retweetID = data.statuses[0].id_str;
28
console.log(data.statuses[0]);
0 commit comments