是否可以在WhatsApp上使用Twilio接触A与B联系A接触A?

发布于 2025-01-30 17:25:40 字数 191 浏览 4 评论 0原文

我希望能够拥有一个包含联系人列表的单个电话号码。然后为了联系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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

深者入戏 2025-02-06 17:25:40

是的,这绝对可能:)
在这种情况下,您需要一个充当“中间人”并转发所有消息的Twilio号码。有一篇博客文章描述几乎是场景您提到。唯一的区别是,该样本将使用电话号码而不是结肠上的联系人名称。

+1 415 12341234: Hi, how  are you doing?
+1 415 56785678: Good, any you?


Instead of
Fred: Hi, how  are you doing?
Alex: Good, any you?

但是,使用映射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.

+1 415 12341234: Hi, how  are you doing?
+1 415 56785678: Good, any you?


Instead of
Fred: Hi, how  are you doing?
Alex: Good, any you?

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文