Hello.

I’m working on a bot that has to reply only to the mention post Directly once and nothing else - and need the text from the mentioned tweet above the bot to use the text inside my bot.

Don’t wanna reply to retweets / quote retweets / replies below him in thread as long as he’s not tagged.

For now i’m filtering the stream with (@smolquote) filter:replies -is:retweet -is:quote but i also get the messages in threads below the reply of the bot, like

post1,
post2,
post3 botMentioned,
botReplied,
post3 withoutMention,
botRepliesAgain

And also replies to retweets (because it sees the retweet as a reply to the bot itself.

Can i get some help in this? thanks

filter:replies is not a valid operator, it’s is:reply

All valid ones are here: Search Tweets - How to build a query | Docs | Twitter Developer Platform.

If you don’t want the botRepliesAgain tweet, add -to:smolquote to exclude people replying to the bot directly. Or you can rely on referenced_tweets filed to tell what kind of tweet it is and act accordingly.