grammy-inline-menu

Inline Menus for Telegram made simple. Successor of telegraf-inline-menu.

MIT License

Downloads
1.8K
Stars
350
Committers
11

Bot releases are hidden (Show)

grammy-inline-menu -

Published by EdJoPaTo over 4 years ago

  • fix(menu-middleware): dont throw after long running function 75e4f94
  • fix(choose): dont require TelegrafContext for hide 3c21c3b
  • feat: hide function also gets the path 0ee2b6c

https://github.com/EdJoPaTo/telegraf-inline-menu/compare/v5.0.0-beta.7...v5.0.0-beta.8

grammy-inline-menu -

Published by EdJoPaTo over 4 years ago

  • fix(send-menu): dont answerCbQuery ed408e7
  • fix(send-menu): use text extra on telegram edit fbf5964
  • fix(pagination): dont call hide twice 1d0d4e1
  • test(send-menu): add a bunch of tests c35ff3f
  • test(menu-template): add a bunch of tests 92dc2c8

https://github.com/EdJoPaTo/telegraf-inline-menu/compare/v5.0.0-beta.6...v5.0.0-beta.7

grammy-inline-menu -

Published by EdJoPaTo over 4 years ago

  • feat: prevent two same action submenus 46269de
  • feat(action-hive): prevent adding action trigger twice b55166b
  • fix(template): constructor argument shouldnt be public 5e28ac6

https://github.com/EdJoPaTo/telegraf-inline-menu/compare/v5.0.0-beta.5...v5.0.0-beta.6

grammy-inline-menu -

Published by EdJoPaTo over 4 years ago

Relevant news:

  • feat(send-menu): add generateEditMessageIntoMenuFunction 5ea8a08
  • fix(send-menu): supply telegram object only once ab35aff
  • fix(body): improve edge cases via tests ad4e2c0
  • test(action-hive): add tests f4113c0
  • docs(send-menu): add jsdoc 9162303
  • docs: add JSDoc to template and improve readme 5d264c0
  • fix(middleware): prevent wrong js usage 16609e6
  • feat(template): hint option arguments for js users 2611d70
  • docs(readme): improve migration hints 0f558a2
  • refactor(keyboard): simplify code but require NodeJS 12 d22a8ec

BREAKING CHANGE:

  • require NodeJS 12 d22a8ec
  • generateSendMenuToChatFunction arguments changed ab35aff

https://github.com/EdJoPaTo/telegraf-inline-menu/compare/v5.0.0-beta.4...v5.0.0-beta.5

grammy-inline-menu -

Published by EdJoPaTo over 4 years ago

  • feat: add formatState function to select and toggle e7cff1a
  • feat(body): disable_web_page_preview c8d40e7

BREAKING CHANGE: select multiselect is renamed to showFalseEmoji

https://github.com/EdJoPaTo/telegraf-inline-menu/compare/v5.0.0-beta.3...v5.0.0-beta.4

grammy-inline-menu -

Published by EdJoPaTo over 4 years ago

leaveOnChildInteraction is replaced by returnable strings on do functions. When you return a relative path like '..' the menu will be shown after the do function is done. Check out the changes in the example as they represent the Breaking changes by this well. fa77f57 4b0e47a

An addition to understand the things this library is doing is the MenuMiddleware tree() method. It returns the submenus and actions handled by the middleware in a formatted string. 4cccae8

  • feat: allow for relative path as return value fa77f57
  • refactor: remove leaveOnChildInteraction 4b0e47a
  • feat(menu-middleware): add tree() 4cccae8
  • fix(select): allow hideFalseEmoji to be overriden df84fb0

https://github.com/EdJoPaTo/telegraf-inline-menu/compare/v5.0.0-beta.2...v5.0.0-beta.3

grammy-inline-menu -

Published by EdJoPaTo over 4 years ago

This is still in testing and lacks documentation.
API might change until release.
I appreciate feedback!

also see migration notes

  • fix(manualRow): remove constant argument 3eb5a8f
  • feat(send-menu): add delete and resend methods 80b4112
  • feat: allow for more media in body f20fe2f
  • fix(toggle): hide keyboard button when hidden 6bfc7f6

https://github.com/EdJoPaTo/telegraf-inline-menu/compare/v5.0.0-beta.1...v5.0.0-beta.2

grammy-inline-menu -

Published by EdJoPaTo over 4 years ago

rework library d24d6b2

This is still in testing and lacks documentation.
API might change until release.
I appreciate feedback!

also see migration notes

https://github.com/EdJoPaTo/telegraf-inline-menu/compare/v4.0.1...v5.0.0-beta.1

grammy-inline-menu -

Published by EdJoPaTo over 4 years ago

Compability:

  • NodeJS 8 is no longer actively supported (as it ran out of LTS) 12f5e79
  • Typescript Users require [email protected] for types to work 7a138fe

https://github.com/EdJoPaTo/telegraf-inline-menu/compare/v4.0.0...v4.0.1

grammy-inline-menu -

Published by EdJoPaTo almost 5 years ago

menu.question does now allow for a questionText function. This allows for translation. As the questionText itself isn't unique anymore a new uniqueIdentifier has to be given. fd8fd2b

menu.select with option submenu does no longer work. This was already deprecated since introducing TypeScript types and is now entirely removed. Use menu.selectSubmenu instead. 8731b2d

https://github.com/EdJoPaTo/telegraf-inline-menu/compare/v3.6.3...v4.0.0

grammy-inline-menu -

Published by EdJoPaTo about 5 years ago

  • fix(select): allow readonly options array 4739ec0

https://github.com/EdJoPaTo/telegraf-inline-menu/compare/v3.6.2...v3.6.3

grammy-inline-menu -

Published by EdJoPaTo about 5 years ago

  • fixup! fix(pagination): currentPage can return undefined 31c6ea1

https://github.com/EdJoPaTo/telegraf-inline-menu/compare/v3.6.1...v3.6.2

grammy-inline-menu -

Published by EdJoPaTo about 5 years ago

  • fix(pagination): currentPage can return undefined 0a3fe0f

https://github.com/EdJoPaTo/telegraf-inline-menu/compare/v3.6.0...v3.6.1

grammy-inline-menu -

Published by EdJoPaTo over 5 years ago

  • feat(select): select options can be numeric 0006f94
  • fix: correct typo in error output 3e9a7bd

https://github.com/EdJoPaTo/telegraf-inline-menu/compare/v3.5.5...v3.6.0

grammy-inline-menu -

Published by EdJoPaTo over 5 years ago

grammy-inline-menu -

Published by EdJoPaTo over 5 years ago

  • fix(toggle): accept truthy / falsy as isSetFunc return value 1f9a8d6

https://github.com/EdJoPaTo/telegraf-inline-menu/compare/v3.5.3...v3.5.4

grammy-inline-menu -

Published by EdJoPaTo over 5 years ago

  • fix(action-code): throw error on longer than 64 bytes content 82dc37b
  • perf(question): string.includes is more performant than RegExp d3bfa07
  • refactor: use ReadonlyArray when possible 4e0e7c7

Docs

  • docs: improve ActionCode to callback_data expanation d783038
  • Fixed hide documentation (#21) 00261bb
  • Improving README (#16) 72e7774

https://github.com/EdJoPaTo/telegraf-inline-menu/compare/v3.5.2...v3.5.3

grammy-inline-menu -

Published by EdJoPaTo over 5 years ago

  • fix: Telegram error message changed when menu is not modified c296928
  • test(reply-menu-middleware): async func has to be awaited 7d987a3
  • style(xo): functions that return promises must be async 9d95e04

https://github.com/EdJoPaTo/telegraf-inline-menu/compare/v3.5.1...v3.5.2

grammy-inline-menu -

Published by EdJoPaTo over 5 years ago

  • fix(init): allow function as backButtonText 6254af4

https://github.com/EdJoPaTo/telegraf-inline-menu/compare/v3.5.0...v3.5.1

grammy-inline-menu - Photo menus

Published by EdJoPaTo over 5 years ago

Tired of text messages with menus? Use Photos with menus instead. 🖼

  • implement menuPhoto 0f7920f 6e9b974 e4b40ab 321df8b

https://github.com/EdJoPaTo/telegraf-inline-menu/compare/v3.4.6...v3.5.0