- Updated GoTD to v0.82.0
- Deprecated
ctx.ForwardMessage
(Usectx.ForwardMessages
now) - Replaced BigCache with AnimeKaizoku/Cacher for caching peers
- Fixed high memory usage by gotgproto (uses around 5MBs now, earlier it was 100+ MBs)
- Rewrote GoTGProto client, it should be more handy to create a new client now
- Added a new
dispatcher.Dispatcher
inteface - Renamed
dispatcher.CustomDispatcher
todispatcher.NativeDispatcher
- Optimised command and message handlers
- Added new
types.Message
, which is a union oftg.Message
,tg.MessageService
,tg.MessageEmpty
ext.Update.EffectiveMessage
is of type*types.Message
- Added a new optional field in ClientOpts, named
AutoFetchReply
(setting this field to true will automatically cast ReplyToMessage field) - Save peers of logged in user in session, while logging in.
- Added
client.ExportSessionString()
,client.RefreshContext(ctx)
andclient.CreateContext()
methods togotgproto.Client
. - Remove an unintentional display of session data in
Stdout
. - Added
SystemLangCode
andClientLangCode
optional fields togotgproto.Client
. - Moved helper methods errors to
errors
package (gotgproto/errors) - Added
gotgproto.Client.Stop()
to cancel the running context and stop the client. - Added
dispatcher.StopClient
handler error, which if returned through a handler callback will result in stopping the client. - Added
gotgproto.Client.Start()
to login and connect to telegram (It's already called by gotgproto.NewClient so no need to call it again. however, it should be used to re-establish a connection once it's closed viagotgproto.Client.Stop()
) - Fixed session database initialisation happening twice per login.
- Updated to GoTD to v0.88.0 (Layer 164)
- Redesigned session initialization (Now supports logging in with just string session in memory as well as session file)
- Added
Middlewares
andDevice
fields toClientOpts
ForwardMediaGroup
won't omit error now
- Updated to GoTD to v0.91.0 (Layer 167)
- Adapted pure Go SQLite driver (This means you will no longer need CGO!) #40 (#40)
- Redesigned peers storage mechanism and made it compatible for multiple clients
- Redesigned session initialization system to make its function simpler and efficient #38 (#38)
- Fixed exporting session string #33 (#33)
- Fixed ability to use dc resolver #35 (#35)
- Fixed a bug due to which last styled element was not added to styling map #36 (#36)
- Fixed a bug in retrieving reply-to messages and enhanced it to retrieve entire reply chain #37 (#37)
- Fixed a bug due to which client would stuck on failed login attempts (due to a deadlock)
- Added a few more examples for less confusion