[DAY17]模板确认

TemplateSendMessage - ConfirmTemplate

confirm_template_message = TemplateSendMessage(
    alt_text='Confirm template',
    template=ConfirmTemplate(
    显示问题
        text='Are you sure?',
        actions=[
        类似後台动作使用者会看不到过程只会看到结果
            PostbackAction(
                label='postback',
                display_text='postback text',
        要传到後端的资料
                data='action=buy&itemid=1'
            ),
            MessageAction(
                label='message',
                text='message text'
            )
        ]
    )
)

Template with two action buttons.

type
String Required
confirm

text
String Required
Message text
Max character limit: 240
必须两个
actions
Array of action objects Required
Action when tapped
Set 2 actions for the 2 buttons
https://ithelp.ithome.com.tw/upload/images/20211001/20140159hP04BXv8xl.jpg


<<:  模型的内容06 def main()

>>:  [NestJS 带你飞!] DAY16 - Configuration

Day13 补位策略 Backfill

在不同游戏的类型可以用不同的条件配对成团,以下为常见配对後可以接受补位的情境: 在一场游戏中,有一名...

OpenWRT安装与设定

Start进入系统 等它跑一下 好了我们选择那只企鹅(Duck)後点选VNC Remote 进入,按...

【心得】你今天种菜了吗? grid之路-grid的使用(5)

前言 既然可以使用grid-area为每个区域命名,并填入grid-template-areas中,...

DAY5 - 链表(一)

链表算是常出的题型之一吧(? 今天先整理出相对直观好理解的题目,明天补上比较需要思考的 链表也不需要...

从零开始-30日练习开发iOS APP-UserDefault Day-28

正文: 利用 UserDefault 储存资料 预览图: 程序码: import UIKit cla...