如何使用 Twitter gem 回复推文?

How to reply a tweet using the Twitter gem?

r = 569186681850601472

client.update('@ooidesigns work', in_reply_to_tweet_id: r)

我正在尝试使用推特 gem 和客户端 (Twitter::REST) class 回复一条推文,但只有消息被发送到推特上,它没有回复鸣叫。 感谢任何帮助

我相信您希望使用 in_reply_to_status_id 例如

client.update('@ooidesigns work', in_reply_to_status_id: 569186681850601472)

好的,所以 569186681850601472 tweet is this,对吧?它是由 @Ksweeg 用户创建的,而不是由 @ooidesigns 用户创建的。因此,为了回复此推文,您应该在推文文本中指定 @Ksweeg

r = 569186681850601472

client.update('@Ksweeg test tweet', in_reply_to_status_id: r)