Skip to content

Releases: PaulSonOfLars/gotgbot

bot API 7.3

18 May 20:02
4ee08fe
Compare
Choose a tag to compare
bot API 7.3 Pre-release
Pre-release

What's Changed

Full Changelog: v2.0.0-rc.26...v2.0.0-rc.27

v2.0.0-rc.26 - Bot API 7.2

04 May 13:46
ae21465
Compare
Choose a tag to compare
Pre-release

What's Changed

Full Changelog: v2.0.0-rc.25...v2.0.0-rc.26

v2.0.0-rc.25

21 Feb 08:18
e2bc46c
Compare
Choose a tag to compare
v2.0.0-rc.25 Pre-release
Pre-release

What's Changed

New Contributors

Full Changelog: v2.0.0-rc.24...v2.0.0-rc.25

v2.0.0-rc.24 - Bot API 7.0

20 Jan 10:23
a61db17
Compare
Choose a tag to compare
Pre-release

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

11 Nov 10:55
35d1a9b
Compare
Choose a tag to compare
v2.0.0-rc.23 Pre-release
Pre-release

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: v2.0.0-rc.22...v2.0.0-rc.23

v2.0.0-rc.21

02 Sep 15:37
f87f4f7
Compare
Choose a tag to compare
v2.0.0-rc.21 Pre-release
Pre-release

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!

First beta release of v2

13 Dec 18:03
Compare
Choose a tag to compare
Pre-release

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

First beta release of v1

13 Dec 17:21
Compare
Choose a tag to compare
Pre-release

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.