Skip to content

Commit

Permalink
Frankenstein 0.30.0
Browse files Browse the repository at this point in the history
  • Loading branch information
ayrat555 committed Jan 6, 2024
1 parent 0778980 commit cfdbdf8
Show file tree
Hide file tree
Showing 8 changed files with 96 additions and 70 deletions.
114 changes: 57 additions & 57 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ dotenvy = "0.15"
pretty_env_logger = "0.5"
fang = { version = "0.10.4", features = ["blocking"], default-features = false }
feed-rs = "1.3"
frankenstein = { version = "0.29.2", default-features = false, features = ["telegram-trait"] }
frankenstein = { version = "0.30.0", default-features = false, features = ["telegram-trait"] }
handlebars = "4.5"
hex = "0.4"
htmlescape = "0.3"
Expand Down
5 changes: 4 additions & 1 deletion src/bot/commands.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ use frankenstein::Chat;
use frankenstein::ChatType;
use frankenstein::InlineKeyboardButton;
use frankenstein::InlineKeyboardMarkup;
use frankenstein::LinkPreviewOptions;
use frankenstein::Message;
use frankenstein::ReplyMarkup;
use frankenstein::SendMessageParams;
Expand Down Expand Up @@ -377,9 +378,11 @@ pub trait Command {
.inline_keyboard(buttons)
.build();

let preview_params = LinkPreviewOptions::builder().is_disabled(true).build();

let mut params = SendMessageParams::builder()
.chat_id(message.chat.id)
.disable_web_page_preview(true)
.link_preview_options(preview_params)
.text(text)
.reply_markup(ReplyMarkup::InlineKeyboardMarkup(keyboard))
.build();
Expand Down
Loading

0 comments on commit cfdbdf8

Please sign in to comment.