mirror of
https://github.com/zhayujie/chatgpt-on-wechat.git
synced 2026-06-02 00:57:41 +08:00
根据参数创建频道
This commit is contained in:
@@ -190,7 +190,7 @@ class WechatChannel(Channel):
|
|||||||
thread_pool_callback)
|
thread_pool_callback)
|
||||||
|
|
||||||
def handle_group_voice(self, msg):
|
def handle_group_voice(self, msg):
|
||||||
if conf().get('speech_recognition') != True:
|
if conf().get('group_speech_recognition') != True:
|
||||||
return
|
return
|
||||||
logger.debug("[WX]receive group voice msg: " + msg['FileName'])
|
logger.debug("[WX]receive group voice msg: " + msg['FileName'])
|
||||||
group_name = msg['User'].get('NickName', None)
|
group_name = msg['User'].get('NickName', None)
|
||||||
|
|||||||
@@ -44,6 +44,7 @@ class WechatyChannel(Channel):
|
|||||||
|
|
||||||
async def on_scan(self, status: ScanStatus, qr_code: Optional[str] = None,
|
async def on_scan(self, status: ScanStatus, qr_code: Optional[str] = None,
|
||||||
data: Optional[str] = None):
|
data: Optional[str] = None):
|
||||||
|
pass
|
||||||
# contact = self.Contact.load(self.contact_id)
|
# contact = self.Contact.load(self.contact_id)
|
||||||
# logger.info('[WX] scan user={}, scan status={}, scan qr_code={}'.format(contact, status.name, qr_code))
|
# logger.info('[WX] scan user={}, scan status={}, scan qr_code={}'.format(contact, status.name, qr_code))
|
||||||
# print(f'user <{contact}> scan status: {status.name} , 'f'qr_code: {qr_code}')
|
# print(f'user <{contact}> scan status: {status.name} , 'f'qr_code: {qr_code}')
|
||||||
|
|||||||
Reference in New Issue
Block a user