Beta 5
almost 10 years ago by Yann Badoual
This 5th beta improves stability a lot, including in the use of threads.
Changelog:
- Updated sample and README to provide an easy-to-run example on how to signIn and getDialogs
- Moved all parameters common parameters of same type constructors into the abstraction superclass for more convenience (avoid having to cast each time)
- Forced UTF-8 usage when converting strings from/to bytes
- Now automatically handles
FILE_MIGRATE_Xerror when downloading a file, a new connection to the appropriate DC will be created and the request will be executed there (this case may add some additional delay) - Completely removed the "reactive client" for now
- Improve thread usage/cleaning after usage
- Added method to change your client's timeout
- Fixed some bad connection to Telegram by using a "retry policy" which will close the bad socket, and open a new one to retry once
- Refactored
TLContextclass to fix various bugs related to serialization/deserialization - Refactored methods taking a
TLVector<>as an argument to accept a covariant version. It'll be useful for example when taking aTLVector<TLAbsInput>you can now give aTLVector<TLInputUser> - Added convenience methods to get cast version of object if the type has only 2 constructors, and one of them is an "empty" type constructor (ie:
TLAbsUserhasTLUserandTLUserEmptyconstructors). You can just callisEmpty()orgetAsUser()in this case
Changelog
- added:
