get_users_mentions api will returning tweets that don't directly mention my account
Opened this issue · 0 comments
tttjj80 commented
Hi Gkamradt ,your project is excellent! It provides a very comprehensive overview of combining Twitter with LLMs to create an automated reply bot.
However, I've found an issue.
I'm using this code:
tweets = api.mentions_timeline(last_seen_id, tweet_mode='extended')
The problem is: if I've already answered a mention and a random user answer this tweet, or answer the tweet that my bot was mentioned, the API consider it a mention.
I want to ignore all the replies of my tweet and the replies of the tweet that I was mentioned, and consider just the first tweet as a mention.
I'm curious if you've experienced this issue and if you found a solution.
This has been bothering me for quite some time.