Skip to content
New issue

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

get_users_mentions api will returning tweets that don't directly mention my account #1

Open
tttjj80 opened this issue Sep 16, 2024 · 0 comments

Comments

@tttjj80
Copy link

tttjj80 commented Sep 16, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant