Skip to content

v6.0 - Migrate to telegraf v4

Compare
Choose a tag to compare
@EdJoPaTo EdJoPaTo released this 26 Jan 20:39
· 156 commits to main since this release
2898974
  • migrate to telegraf v4

v5.3.0...v6.0.0

Migrate from version 5 to version 6

Version 6 switched from telegraf 3.38 to 4.0. See the telegraf migration guide for this set of changes.

telegraf-inline-menu is relativly unaffected by this.
The only change required besides the telegraf changes is the change of ctx.match.
Simply add match to your MyContext type:

export interface MyContext extends TelegrafContext {
	readonly match: RegExpExecArray | undefined;
	
}

telegraf knows when match is available or not.
The default Context does not have match anymore.
telegraf-inline-menu should also know this in a future release.