This repository has been archived by the owner on Mar 19, 2022. It is now read-only.
Releases: badoualy/kotlogram
Releases · badoualy/kotlogram
1.0.0 RC3
1.0.0 RC2
1.0.0 RC1
Beta 6
Like beta 5, this 6th beta increases stability a lot, add some utils methods for Kotlin (using extension methods)
Changelog:
- Switched to SocketChannel, now using Java NIO
- Improved tl-builder module, fixed some bugs due to flag fields
- Implemented a client pool, to keep connection opened, using nio selectors
- Now using travis for CI
- Handle time sync to solve bad message id
- Implemented unit testing for the serialization/deserialization phase
- Execute a first RPC call when creating connection to start updates
- Fixed some bugs when deserializing
TLVector
of Integer, Long or String - Fixed update callback sometimes blocking the thread when calling a client method in the listener
- Fixed some missing message ack
- Handle
NETWORK_MIGRATE_
error - All API methods now throws
RpcErrorException
- Update Kotlin to latest version
Beta 5
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_X
error 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
TLContext
class 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:
TLAbsUser
hasTLUser
andTLUserEmpty
constructors). You can just callisEmpty()
orgetAsUser()
in this case
Beta 4
Beta 3
- Disabled reactiveX client until I can figure out a way to easily maintain both versions
- Fixed the whole initialization step where a lot of bugs could happen if the phone number's data center was different from the server nearest
- Temporarily switched from SecureRandom to Random to test performances
- Added automatic migration when receiving
PHONE_MIGRATE_X
from Telegram - Added convenience method to download a user profile photo (and chat)
Beta 2
Beta 1
First beta version with possibility to:
- Create a synchronous client using
Kotlogram.getDefaultClient()
method - Execute any method via the matching method in the client (or via
executeRpcQuery
method)
The objectives for the future versions are:
- Improve error handling
- Add update handling