Releases: mcpeblocker/telegraf-pagination
Releases · mcpeblocker/telegraf-pagination
Readme examples updated.
1.4.1 Version updated to v1.4.1
Version 1.4.0
Support for layout adjustment of custom inline buttons
Custom inline buttons option now expect the same array as given for Markup.keyboard()
function of Telegraf
Code below will be displayed as row
inlineCustomButtons: [
[
Markup.button.callback("Custom 1", "custom1"),
Markup.button.callback("Custom 2", "custom2"),
],
],
Code below will be displayed as column of these two
inlineCustomButtons: [
[Markup.button.callback("Custom 1", "custom1")],
[Markup.button.callback("Custom 2", "custom2")],
],
Support functions in buttons mode
Using function became available in Buttons Mode:
- Either string as key and function to form string from item can be used.
- Function takes item and its index as arguments and can use to form complex combinations.
v1.3.3
Bug fix:
- Default value for isSimpleArray replaced with false - so that given titleKey works fine.
v1.3.2
- Bug fixes
- Corrected versioning
v1.3.2
Bug fixes:
- Corrected reference of object / Reference error
v1.3.1
Bug fixed:
- Handling custom titleKey for buttons-mode
v1.3.0
New feature:
- Support for custom indexes in pagination buttons.
v1.2.2
Initial release with version 1.2.1
That's the very first "official" github release for automatic publishing telegraf-pagination package to npm registry.