Giter Club home page Giter Club logo

Comments (3)

trevorhobenshield avatar trevorhobenshield commented on June 8, 2024 1

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.

AaronEichler avatar AaronEichler commented on June 8, 2024

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.

AaronEichler avatar AaronEichler commented on June 8, 2024

i was dumb enough to not see the reply function...

Thanks a lot for clarification!

from twitter-api-client.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.