Update Cromicle.py

This commit is contained in:
Hexye 2023-10-04 22:51:41 +02:00 committed by GitHub
parent eb13f3b01d
commit 3b418e8cc5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -20,7 +20,7 @@ class Cromicle(AsyncGeneratorProvider):
proxy: str = None, proxy: str = None,
**kwargs **kwargs
) -> AsyncGenerator: ) -> AsyncGenerator:
message = messages[-1]["content"]
async with ClientSession( async with ClientSession(
headers=_create_header() headers=_create_header()
) as session: ) as session:
@ -46,5 +46,5 @@ def _create_payload(message: str):
return { return {
'message' : message, 'message' : message,
'token' : 'abc', 'token' : 'abc',
'hash' : sha256(token.encode() + message.encode()).hexdigest() 'hash' : sha256('abc'.encode() + message.encode()).hexdigest()
} }