Skip to content

Commit

Permalink
refactor!: simplify traits with macros (#210)
Browse files Browse the repository at this point in the history
* refactor!: use MessageOrBool over EditMessageResponse

BREAKING CHANGE: EditMessageResponse is gone

* fix: always take params reference

BREAKING CHANGE: all params are now by reference and are not moved anymore

* refactor!: create trait methods via macro

BREAKING CHANGE: AsyncTelegramApi requires Sync.
This was likely the case before via `#[async_trait]` but wasn't explicitly specified.

* refactor: inline request_without_body

BREAKING CHANGE: request_without_body method is gone. probably not relevant as its mainly used internally

* fixup! refactor!: create trait methods via macro
  • Loading branch information
EdJoPaTo authored Sep 17, 2024
1 parent 8668b75 commit 251cebf
Show file tree
Hide file tree
Showing 3 changed files with 286 additions and 1,701 deletions.
3 changes: 2 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,8 @@ required-features = ["telegram-trait"]

[dependencies]
bon = "2.2.0"
macro_rules_attribute = "0.2"
macro_rules_attribute = "0.2.0"
paste = "1.0.2"
thiserror = "1"

[dependencies.async-trait]
Expand Down
Loading

0 comments on commit 251cebf

Please sign in to comment.