mirror of
https://github.com/teloxide/teloxide.git
synced 2024-12-22 22:46:39 +01:00
Merge branch 'dev' of github.com:async-telegram-bot/async-telegram-bot into dev
This commit is contained in:
commit
47e97ec2be
1 changed files with 4 additions and 8 deletions
|
@ -38,8 +38,7 @@ impl Request for SendMessage {
|
||||||
.text("text", self.text)
|
.text("text", self.text)
|
||||||
.apply(|f| {
|
.apply(|f| {
|
||||||
if let Some(parse_mode) = self.parse_mode {
|
if let Some(parse_mode) = self.parse_mode {
|
||||||
f.text("parse_mode", parse_mode);
|
f.text("parse_mode", parse_mode)
|
||||||
f
|
|
||||||
} else {
|
} else {
|
||||||
f
|
f
|
||||||
}
|
}
|
||||||
|
@ -49,8 +48,7 @@ impl Request for SendMessage {
|
||||||
f.text(
|
f.text(
|
||||||
"disable_web_page_preview",
|
"disable_web_page_preview",
|
||||||
format!("{:?}", disable_web_page_preview),
|
format!("{:?}", disable_web_page_preview),
|
||||||
);
|
)
|
||||||
f
|
|
||||||
} else {
|
} else {
|
||||||
f
|
f
|
||||||
}
|
}
|
||||||
|
@ -60,16 +58,14 @@ impl Request for SendMessage {
|
||||||
f.text(
|
f.text(
|
||||||
"disable_notification",
|
"disable_notification",
|
||||||
format!("{:?}", disable_notification),
|
format!("{:?}", disable_notification),
|
||||||
);
|
)
|
||||||
f
|
|
||||||
} else {
|
} else {
|
||||||
f
|
f
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
.apply(|f| {
|
.apply(|f| {
|
||||||
if let Some(reply_to_message_id) = self.reply_to_message_id {
|
if let Some(reply_to_message_id) = self.reply_to_message_id {
|
||||||
f.text("reply_to_message_id", format!("{:?}", reply_to_message_id));
|
f.text("reply_to_message_id", format!("{:?}", reply_to_message_id))
|
||||||
f
|
|
||||||
} else {
|
} else {
|
||||||
f
|
f
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue