Skip to content

GoTGProto v1.0.0-beta10

Compare
Choose a tag to compare
@celestix celestix released this 21 May 19:35
· 86 commits to beta since this release

GoTGProto Changelog

  • Updated GoTD to v0.82.0
  • Deprecated ctx.ForwardMessage (Use ctx.ForwardMessages now)
  • Replaced BigCache with Cacher for cache
  • Fixed high memory usage by gotgproto (uses around 5MBs now, earlier it was 100+ MBs)
  • Rewrote GoTGProto client utilities, it should be more handy and cleaner to create a new client now.
  • Added a new dispatcher.Dispatcher interface
  • Renamed dispatcher.CustomDispatcher to dispatcher.NativeDispatcher
  • Made some optimizations in command and message handlers
  • Added types.Message, which is a union of tg.Message, tg.MessageService, and tg.MessageEmpty structs.
  • ext.Update.EffectiveMessage is of the type *types.Message now.
  • Added a new optional field in ClientOpts, named AutoFetchReply (setting this field to true will automatically cast ReplyToMessage field in update.EffectiiveMessage)
  • Peers for logged in user will now be saved in session while starting client.
  • Added client.ExportSessionString(), client.RefreshContext(ctx) and client.CreateContext() methods to gotgproto.Client.
  • Removed an unintentional display of session data in Stdout.
  • Added SystemLangCode and ClientLangCode optional fields to gotgproto.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 via gotgproto.Client.Stop())
  • Fixed session database initialization happening twice per login.

Full Changelog: anonyindian/gotgproto@v1.0.0-beta09...v1.0.0-beta10