Comments (1)
You must send TdApi.Close() and wait for the TdApi.Ok response.
If you want to make sure that tdlib is closed when the app is closed, you must send TdApi.Close() and wait for its response in a shutdown hook.
Runtime.getRuntime().addShutdownHook(new Thread() {
public void run() {
// Send here TdApi.Close(), and wait for TdApi.Ok response
}
});
from tdlight-java.
Related Issues (20)
- can tdlight-java's session folder be converted back and forth with Python's Telethon library's .session file? HOT 1
- Fail to load chats HOT 6
- Example won't compile HOT 12
- Impossible to authenticate(none of the ways work) HOT 1
- Can I log in to TDLight app by QR code?
- Public link is null HOT 1
- cant use disableWebPagePreview property HOT 1
- Monitor chat updates where i am not a member (not joined this chat) HOT 1
- TdApi.JoinChatByInviteLink return it.tdlight.client.TelegramError: 500: Internal Server Error: failed to join chat via invite link HOT 2
- db.sqlite file are unreasonably heavy HOT 1
- UpdateMessageEdited Cannot receive callback of robot edited message HOT 1
- Is there any plans to add support for similar channels feature? HOT 2
- Integrate User Bot in Spring Boot application with @Scheduled functions HOT 1
- Failed to load TDLight native libraries (which was built for Mac OS X 12.6) HOT 3
- 3.3.1+td.1.8.25 can not close
- Client is not fully close when call client.sendClose() HOT 1
- How to off logging?
- support for Multiple clients HOT 1
- GetChatHistory not respecting offset int HOT 1
- User Guide
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tdlight-java.