-
Notifications
You must be signed in to change notification settings - Fork 0
/
tempwa.py
28 lines (26 loc) · 1.11 KB
/
tempwa.py
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
class watemplate():
template=None
def __init__(self,namespace,t_name,person):
self.template={
"template": {
"whatsapp": {
"namespace": namespace,
"element_name": t_name,
"language": {
"policy": "deterministic",
"code": "en"
},
"components": [
{
"type": "body",
"parameters": [
{
"type": "text",
"text": person
}
]
}
]
}
}
}