Skip to content

Commit ec984a5

Browse files
committed
use wechaty qrcode api service (wechaty/qrcode#1)
1 parent fbb5c34 commit ec984a5

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ Wechaty is a RPA SDK for Wechat **Individual** Account that can help you create
5656
from wechaty import Wechaty
5757
5858
Wechaty.instance() // Global Instance
59-
.on('scan', lambda qrcode, status : print('Scan QR Code to login: {}\nhttps://api.qrserver.com/v1/create-qr-code/?data={}'.format(status, encodeURIComponent(qrcode))))
59+
.on('scan', lambda qrcode, status : print('Scan QR Code to login: {}\nhttps://wechaty.github.io/qrcode/{}'.format(status, encodeURIComponent(qrcode))))
6060
.on('login', lambda user: print('User {} logined'.format(user)))
6161
.on('message', lambda message: print('Message: {}'.format(message)))
6262
.start()

examples/ding-dong-bot.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,7 @@ async def on_scan(qrcode: str, status: int):
4343
"""
4444
Scan Handler for the Bot
4545
"""
46-
print(qrcode, status)
47-
# TODO: To be written
46+
print('Status: ' + status + ', View QR Code Online: https://wechaty.github.io/qrcode/' + qrcode)
4847

4948

5049
async def on_login(user: Contact):

0 commit comments

Comments
 (0)