Comments (3)
I think someone else also had a similar issue. I'm going to be removing those keyword arguments for tweet()
in the future to avoid confusion. I may also refactor these methods to make the API slightly more intuitive.
Basically, tweet()
is only intended to accept a message and an optional media parameter. Kwargs aren't supposed to be used directly, only the methods reply()
, quote()
, and create_poll()
are supposed to be using them. This is because all of these methods are calling the same endpoint that tweet()
does, but with some extra parameters.
On the other hand retweet()
and schedule_tweet()
use entirely different endpoints, so they cannot simply call tweet()
with extra params.
To answer your specific questions:
I just saw in your code that reply to is only available for scheduled tweets, right?
Nope, we can reply to a tweet simply using reply()
. Scheduled tweets use a different endpoint, so I've currently created a separate method for them as you may have seen in the readme.
What am i doing wrong?
If you only care about replying to a tweet you can simply use the method reply()
account.reply(123456, 'my reply')
If you want to schedule a reply, a different method is used:
account.schedule_tweet('my scheduled reply', '2023-04-20 19:11', reply_to=123456)
## or with a unix timestamp
# account.schedule_tweet('my scheduled reply', 1682043060, reply_to=123456)
from twitter-api-client.
I just saw in your code that reply to is only available for sceduled tweets, right?
As you know your code muuuuch better, would a change here be possible?
I don't want to be demanding and would use a workaround if you don't want/can change this atm..
Regards :)
from twitter-api-client.
i was dumb enough to not see the reply function...
Thanks a lot for clarification!
from twitter-api-client.
Related Issues (20)
- Rate Limit Retrieval Proposal HOT 4
- 0.10.18 does not work at all on Linux HOT 2
- The limit rate of tweets_details HOT 2
- I can't get any values by using Scraper HOT 9
- Hi Trevor
- Locked accounts HOT 4
- `tweets_by_ids()` Sometimes Not Returning `legacy` HOT 1
- call stack is not deep enough HOT 2
- anyway to access oauth_token and oauth_token_secert?
- flow_token errors while logging in HOT 2
- Scraper: Cannot parse JSON response 'NoneType' object has no attribute 'json' HOT 1
- Reply w/ picture, quote with picture
- Unlock account via arkose captcha solve HOT 7
- Confirmation of tweets_by_ids endpoint rate limits HOT 1
- Unable to Authorize in Linux Shell HOT 4
- View tweet
- How to save cookies for later use HOT 1
- Bug with `debug` Parameter for Linux Shells HOT 1
- save_cookies() undocumented
- Feature request - Login with 2fa enabled HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from twitter-api-client.