andrew-ld / ll-mtproto Goto Github PK
View Code? Open in Web Editor NEWll-mtproto is an abstraction-free mtproto client
License: GNU Affero General Public License v3.0
ll-mtproto is an abstraction-free mtproto client
License: GNU Affero General Public License v3.0
allow other developers to use implementations other than cryptg by abstracting methods for cryptography as already done for networking and codec
layer 140 add a costructor with multiple flags, need investigation
if response is vector it throws this error
File "/root/LL-mtproto-master/ll_mtproto/tl/tl.py", line 229, in deserialize
raise ValueError(f"Unknown constructor {hex(int.from_bytes(cons_number, 'little'))}")
ValueError: Unknown constructor 0x1cb5c415
This library is ready to use or under development?
in a long, continuously running process after some period of time, i start to get this error message,
same error for all rpc call.
ERROR:root:received a message with unknown salt! -259348346848177331
ERROR:root:received a message with unknown salt! -259348346848177331
ERROR:root:received a message with unknown salt! -259348346848177331
ERROR:root:received a message with unknown salt! -259348346848177331
but the response for rpc calls seems to be coming and correct ๐ค
is this related to network issue? do i have to ignore it?
this error do not go away until i relaunch the process.
when i try to convert received response into json string i am getting this following error.
TypeError: Object of type bytes is not JSON serializable
dialogs = await session.rpc_call({"_cons":"messages.getDialogs","hash":0,"offset_peer": {"_cons":"inputPeerEmpty"},"offset_id":0, "offset_date":0,"offset": 0, "max_id": 0,"limit": 3,})
print(json.dumps(dialogs.get_dict()))
connection is dying after 10 seconds?
steps to reproduce
run any rpc call then sleep
time.sleep(10)
run another rpc call this time we get ConnectionResetError
same result even if we run rpc calls continuously without sleep.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.