LocationSendMessage
location_message = LocationSendMessage(
title='my location',
address='Tokyo',
latitude(纬度)=35.65910807942215,
longitude(经度)=139.70372892916203
)
显示地图title跟address是我们打什麽就会显示什麽,而经纬度我们可以利用Google地图寻找
Location message
type
String Required
location
最多只能有100字
title
String Required
Title
Max character limit: 100
同上
address
String Required
Address
Max character limit: 100
latitude
Decimal Required
Latitude
longitude
Decimal Required
Longitude
ImagemapSendMessage
imagemap_message = ImagemapSendMessage(
base_url='https://example.com/base',图片来源URL
alt_text='this is an imagemap',副标题
base_size=BaseSize(height=1040, width=1040),图片范围大小
我们在图片中也可以放入影片
video=Video(
original_content_url='https://example.com/video.mp4',
preview_image_url='https://example.com/video_preview.jpg',
area=ImagemapArea(
x=0, y=0, width=1040, height=585
),
external_link=ExternalLink(
影片点开後右上角会有一个小标签供点击
link_uri='https://example.com/see_more.html',
label='See More',
),
),
当图片按钮按下去後的动作
actions=[
URIImagemapAction(
link_uri='https://example.com/',
area=ImagemapArea(
x=0, y=0, width=520, height=1040
)
),
MessageImagemapAction(
text='hello',
area=ImagemapArea(
x=520, y=0, width=520, height=1040
)
)
]
)
明天会再讲的更详细一些
<<: Day 13 - Spring Boot & JPA
>>: Day13 - 重构产品页面 API,使用 API routes - feat. MongoDB
挑战目标: MockNative Camp 今天来做教师的更新API,因为我没有实际看过教师更新的画...
储存边和弧是否存在 添加权重时的纪录状况 参考来源 大话资料结构 ...
引言 昨天使用到 strings 与 grep 这两个工具, 主要是用来寻找一堆资料中的字串的。 ...
我想就算没玩过游戏、应该也多少听过去年上映的音速小子电影、这是部由 SEGA 游戏音速小子(现译为索...
Compare and contrast CPU, MCU, and embedded syste...