All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
derive(DialogueState)
macro
#[command(rename = "...")]
now always renames to"..."
; to rename multiple commands using the same pattern, use#[command(rename_rule = "snake_case")]
and the like.#[command(parse_with = ...)]
now requires a path, instead of a string, when specifying custom parsers.
#[derive(BotCommands)]
even if the trait is not imported (issue #717).
- Allow specifying a path to a command handler in
parse_with
(PR #27).
- Fix
#[command(rename = "...")]
for custom command names (issue 633).
- Fix
#[derive(DialogueState)]
(function return typedptree::Handler
).
- Support for the old dispatching:
#[teloxide(subtransition)]
[BC].
#[derive(DialogueState)]
in favour ofteloxide::handler!
.
- Make bot name check case-insensitive (PR #16).
- More command rename rules:
UPPERCASE
,PascalCase
,camelCase
,snake_case
,SCREAMING_SNAKE_CASE
,kebab-case
, andSCREAMING-KEBAB-CASE
(PR #18).
- The
BotCommand::bot_commands()
method that returnsVec<BotCommand>
(PR #13). #[derive(DialogueState)]
,#[handler_out(...)]
,#[handler(...)]
.
- Fix generics support for a variant's arguments (PR #8).
- Adjust dialogues with the latest teloxide (v0.4.0).
#[derive(Transition)]
with#[teloxide(subtransition)]
.
- The
dev
branch.
- Now you can remove command from showing in descriptions by defining
description
attribute as"off"
.
- The description in
Cargo.toml
was changed to from "The teloxide's macros for internal usage" to "The teloxide's procedural macros". - Now parsing of arguments happens using special function. There are 3 possible variants:
- Using
default
parser, which only put all text in one String field. - Using
split
parser, which split all text byseparator
(by default is whitespace) and then use FromStr::from_str to construct value. - Using custom separator.
- Using
- Now function
parse
return Result<T, ParseError> instead of Option.
- This
CHANGELOG.md
. .gitignore
.#[parse_with]
attribute.#[separator='%sep%']
attribute.
- The description in
Cargo.toml
was changed to from "The teloxide's macros for internal usage" to "The teloxide's procedural macros".
- This
CHANGELOG.md
. .gitignore
.- The functionality to parse commands only with a correct bot's name (breaks backwards compatibility).
- The same as v0.1.1, but fixes the issue about backwards compatibility.
- Fixes the issue about backwards compatibility, but fairly soon I realised that semver recommends to use v0.1.2 instead.
- The
LICENSE
file.
- Backwards compatibility is broken and was fixed in v0.1.2.
- This project.