Gotgbot Versions Save

Autogenerated Go wrapper for the telegram API. Inspired by the python-telegram-bot library.

v2.0.0-rc.26

2 weeks ago

What's Changed

Full Changelog: https://github.com/PaulSonOfLars/gotgbot/compare/v2.0.0-rc.25...v2.0.0-rc.26

v2.0.0-rc.25

2 months ago

What's Changed

New Contributors

Full Changelog: https://github.com/PaulSonOfLars/gotgbot/compare/v2.0.0-rc.24...v2.0.0-rc.25

v2.0.0-rc.24

3 months ago

Add support for Bot API 7.0 and all the related changes: https://core.telegram.org/bots/api#december-29-2023

Changes:

  • All required changes to support Bot API 7.0 (some breaking changes). New types, new methods, new interfaces. Support for Reactions and Giveaways.
  • Export HTTP Handler for webhooks with existing http servers
  • Add new sample bots
  • Add payment related filters
  • Add topic related filters (Thank you @ti-bone!)
  • Add helpers to simplify channel/edited message support with commands

Note: context.EffectiveMessage has been left as type gotgbot.Message, rather than gotgbot.MaybeInaccessibleMessage, to avoid fighting with types. In the case of an InaccessibleMessage (from callbackqueries), the message will only contain the fields provided by the inaccessible message.

v2.0.0-rc.23

6 months ago

What's Changed

Breaking changes

NewUpdater() now takes a dispatcher as an argument. Most users should be able to migrate using this instead:

	// Create updater and dispatcher.
	dispatcher := ext.NewDispatcher(&ext.DispatcherOpts{
		// If an error is returned by a handler, log it and continue going.
		Error: func(b *gotgbot.Bot, ctx *ext.Context, err error) ext.DispatcherAction {
			log.Println("an error occurred while handling update:", err.Error())
			return ext.DispatcherActionNoop
		},
		MaxRoutines: ext.DefaultMaxRoutines,
	})
	updater := ext.NewUpdater(dispatcher, nil)

Full Changelog: https://github.com/PaulSonOfLars/gotgbot/compare/v2.0.0-rc.22...v2.0.0-rc.23

v2.0.0-rc.21

8 months ago

Lots to be announced in this release - some big changes that have significantly improved the maturity of the lib. Namely:

  • Bot API 6.8 support #100
  • Support for abstracting away the dispatcher handler, making it possible to extend the dispatcher with custom metrics #103 (as demonstrated in #112)
  • Thread-safe support for adding/removing handlers #47
  • Thread-safe support for adding/remove bots when using the multibot updater #98
  • Added support for premium emoji in markdown #96
  • Improved polling startup logic by calling deletewebhook to purge pending updates #94
  • Add a new filter for "story" type messages #104
  • Add a new ResponseParameters field to telegram errors - thank you @liuerfire! #107
  • Improved the local workflow by improving golangci-lint checks #110
  • Various cleanups and documentation improvements

Please note that this version does include some breaking changes; if you're having issues upgrading, let us know in the t.me/gotgbotChat and I'll be happy to help you upgrade.

Fingers crossed this gets us yet another step closer to a stable version!

v2.0.0-beta1

3 years ago

This is the first beta release of v2 of this package, producing a completely reevaluated, autogenerated library which should allow for easier updating.

The new setup is now as follows:

  • all telegram types go in the repo root.
  • all "extension" types, such as the updater and the dispatcher, go in the ext/ directory

v1.0.0-beta1

3 years ago

Release of the original gotgbot library.

If you are creating a new project, I highly recommend using gotgbot@v2 instead, which comes with many great improvements, as well as being fully generated code.