dev #3
@@ -27,6 +27,9 @@ class conversations:
|
|||||||
return None
|
return None
|
||||||
|
|
||||||
def add(self,user_id:str,name:str,id:str = ''):
|
def add(self,user_id:str,name:str,id:str = ''):
|
||||||
|
import uuid
|
||||||
|
if id == '':
|
||||||
|
id= str(uuid.uuid4())
|
||||||
template = BaseConfig.ConversationCfg
|
template = BaseConfig.ConversationCfg
|
||||||
template['id'] = id
|
template['id'] = id
|
||||||
template['user_id'] = user_id
|
template['user_id'] = user_id
|
||||||
|
|||||||
Reference in New Issue
Block a user