Python twilio 在正文中发送带有超链接的短信

Python twilio send sms with hyperlink in body

下面的脚本有效。我怎么找不到一个例子来创建“点击这里”一个 hyperlink 让我们说 www.amazon.com 当有人在移动设备

上触摸它时
import os
from twilio.rest import Client

# Your Account SID from twilio.com/console
account_sid = "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
# Your Auth Token from twilio.com/console
auth_token  = "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"

client = Client(account_sid, auth_token)

message = client.messages.create(
    to="+19051234567", 
    from_="+19057654321",
    body="Summer Sale Click here 35% off")

print(message.sid)

“点击这里”应该是 link 亚马逊网站。

SMS 不支持超链接文本。最好的办法是将 URL 作为短信正文的一部分发送。

message = client.messages.create(
    to="+19051234567", 
    from_="+19057654321",
    body="Summer Sale! For 35% off click here: https://example.org")