You could open issues here to reach me!
Ask me about anything ๐
A flutter plugin for TDLib JSON interface, ffi binding.
License: MIT License
You could open issues here to reach me!
Ask me about anything ๐
Unhandled Exception: Unable to load asset: assets/cfg/app.json
Could not resolve io.github.up9cloud:td:1.7.0.
Required by:
project :app > project :libtdjson
> Could not resolve io.github.up9cloud:td:1.7.0.
> Could not get resource 'https://maven.pkg.github.com/up9cloud/android-libtdjson/io/github/up9cloud/td/1.7.0/td-1.7.0.pom'.
> Could not GET 'https://maven.pkg.github.com/up9cloud/android-libtdjson/io/github/up9cloud/td/1.7.0/td-1.7.0.pom'. Received status code 400 from server: Bad Request
Hello,
Nice dart implementation of TDLib, it's a pain to use without it. I have a question though, where is the authentication key stored when performing the auth flow for telegram using this library ?
I want to store the auth token locally so that I can use https://core.telegram.org/method/auth.importAuthorization to not have to do the auth login flow every time I open my app after closing it.
If that is handled automatically (i.e. the tdlib service saves its state locally and the user is never logged out unless an @type: logOut
request is sent), is there a way to simply detect whether the user is currently logged in ?
Thanks,
flutter_libtdjson/lib/service.dart
Line 157 in 05c71c5
flutter_libtdjson/lib/service.dart
Line 117 in 05c71c5
Example:
String? s = _rawClient.td_json_client_receive(clientId, timeout);
if (s != null) {
Map<String, dynamic> j = json.decode(s);
sendPortToMain.send(j);
if (j['@type'] == 'updateAuthorizationState') {
if (j['authorization_state']['@type'] == 'authorizationStateClosed') {
break;
}
}
}
Hi, I just read your example code and I'm wondering that what I should do to get the user id after successfully logged in (after checkAuthenticationCode)? I want to get the user info through the user id. Actually, I can see some logs about the user info in the debug console, but I don't know how to get it. Any answer will be appreciated, thanks!
Btw, nice package!
its stuck at "Cant find libtdjson.so"
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.