如何使用 Twitter gem 回复推文? [英] How to reply a tweet using the Twitter gem?
本文介绍了如何使用 Twitter gem 回复推文?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
r = 569186681850601472
client.update('@ooidesigns work', in_reply_to_tweet_id: r)
我正在尝试使用 twitter gem 和客户端 (Twitter::REST
) 类回复一条推文,但只发送了该消息,并且不回复该推文.任何帮助表示赞赏
I'm trying to reply a tweet using the twitter gem and the Client (Twitter::REST
) class, but only the the message is tweeted and it does not reply the tweet.
Any help is appreciated
推荐答案
好的,那么 569186681850601472 推文就是这个,对吧?它是由 @Ksweeg
用户制作的,而不是由 @ooidesigns
制作的.因此,为了回复这条推文,您应该在推文文本中指定 @Ksweeg
:
Ok, so 569186681850601472 tweet is this, right? It is made by @Ksweeg
user and not by @ooidesigns
. Therefore, in order to reply to this tweet, you should specify @Ksweeg
in your tweet text:
r = 569186681850601472
client.update('@Ksweeg test tweet', in_reply_to_status_id: r)
这篇关于如何使用 Twitter gem 回复推文?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文