我需要将电报中的机器人与我在推特上的帐户连接起来,所以,当我在推特上发布新推文时,我们需要发布新的电报。
怎么能这样。
Just add your bot token to @manybot in telegram. Then your bot will have options to auto-post from RSS and twitter. No coding needed.
我建议您为您的机器人使用 cron。让它每分钟左右轮询一次你的推特 RSS 提要/API,如果它发现一条新推文……它可以将其转发到你的聊天中。您可能必须使用 Memcache 或 Redis 之类的东西来将chat_id
and存储last_tweet_id
在缓存中。