是否可以在WhatsApp上使用Twilio接触A与B联系A接触A?
我希望能够拥有一个包含联系人列表的单个电话号码。然后为了联系A,能够向看起来像这样的电话号码发送消息:“ Fred:Hi Fred!”,然后由Twilio传达并继续发送给B,然后与B Tick Fred联系。嗨,弗雷德!”
因此,是否可以使用Twilio考虑从联系A中传递/向前消息?
如果有什么指示的方法是在Python中解决这个问题吗?
I would like to be able to have a single phone number that holds a list of contacts. And then for contact A to be able to send a message to that phone number that looks like this: "Fred: Hi fred!", which would then get relayed by Twilio and sent onward to contact B named Fred like so "Alex said: Hi fred!"
So, is it even possible to relay/forward messages from contact A to contact B using Twilio considering?
If there is what would be an indicated way to go about this in python?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
是的,这绝对可能:)
在这种情况下,您需要一个充当“中间人”并转发所有消息的Twilio号码。有一篇博客文章描述几乎是场景您提到。唯一的区别是,该样本将使用电话号码而不是结肠上的联系人名称。
但是,使用映射Twilio函数中名称和电话号码的JSON对象并不难。如果您想加倍努力,则可能还可以使用API同步您的联系人。但这仅在您的通讯簿/联系人应用程序具有API时起作用。
Yes, this is absolutely possible :)
In this scenario, you need a Twilio number that acts as a "Man in the middle" and forwards all messages. There is a blog post that describes almost the scenario you mentioned. The only difference is that this sample will use the phone number instead of a contact name before the colon.
But it shouldn't be too hard to use a JSON object that maps names and phone numbers inside the Twilio function. If you want to go the extra mile, you could probably use an API to sync your contacts as well. But that only works if your address book/ contacts app has an API.