-
Notifications
You must be signed in to change notification settings - Fork 0
/
keyboard.py
37 lines (34 loc) · 1.06 KB
/
keyboard.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
29
30
31
32
33
34
35
36
37
import json
def getKeyboard():
keyboard = {
"one_time": False,
"buttons": [
[{
"action": {
"type": "text",
"payload": "{\"button\": \"1\"}",
"label": "Добавить получателя"
},
"color": "negative"
},
{
"action": {
"type": "text",
"payload": "{\"button\": \"1\"}",
"label": "Удалить получателя"
},
"color": "negative"
},
{
"action": {
"type": "text",
"payload": "{\"button\": \"1\"}",
"label": "Мой id"
},
"color": "negative"
},
]
]
}
keyboard = json.dumps(keyboard, ensure_ascii=False).encode('utf-8')
return str(keyboard.decode('utf-8'))