We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6fc1067 commit 68f383bCopy full SHA for 68f383b
examples/ding-dong-bot.py
@@ -21,6 +21,7 @@
21
FileBox,
22
Message,
23
Wechaty,
24
+ ScanStatus,
25
)
26
27
@@ -39,11 +40,16 @@ async def on_message(msg: Message):
39
40
await msg.say(file_box)
41
42
-async def on_scan(qrcode: str, status: int, data):
43
+async def on_scan(
44
+ qrcode: str,
45
+ status: ScanStatus,
46
+ _data,
47
+):
48
"""
49
Scan Handler for the Bot
50
- print('Status: ' + status + ', View QR Code Online: https://wechaty.js.org/qrcode/' + qrcode)
51
+ print('Status: ' + str(status))
52
+ print('View QR Code Online: https://wechaty.js.org/qrcode/' + qrcode)
53
54
55
async def on_login(user: Contact):
requirements.txt
@@ -1,2 +1 @@
1
-wechaty~=0.6
2
-wechaty-puppet-service~=0.5.0dev
+wechaty~=0.7dev13
0 commit comments