-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapp.js
34 lines (26 loc) · 779 Bytes
/
app.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
let {textBlockGen, imgBlockGen, cardGenerator, webBtnGen, groupedBtnBlockGen, payloadBtnGen, quickReplyBlockGen} = require('./index')
textBlockGen("Hello")
imgBlockGen("url of your image") //this function accepts a param of string(url)
cardGenerator(
"Image URL",
"Title",
"Subtitle",
"Default URL",
[
webBtnGen("Visit 🌍", "URL Here")
]
)
groupedBtnBlockGen(`🔰 Select Topic for PHY-I - `,
[
payloadBtnGen("Books", "phy1_books_flow"),
payloadBtnGen("Questions", "phy1_ques_flow"),
payloadBtnGen("Circular Motion", "phy1_circular_flow"),
]
)
quickReplyBlockGen(
"Title",
[
payloadBtnGen("Btn Title", "Payload"),
payloadBtnGen("Btn Title2", "Payload2")
]
)