From 8f9b6d13cae68d2198ae7bd397e9f12a53a904c1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=A1=D1=8B=D1=80=D1=86=D0=B5=D0=B2=20=D0=92=D0=B0=D0=B4?= =?UTF-8?q?=D0=B8=D0=BC=20=D0=98=D0=B3=D0=BE=D1=80=D0=B5=D0=B2=D0=B8=D1=87?= Date: Thu, 18 Jul 2024 18:27:23 +0300 Subject: [PATCH] Fix #1058 --- crates/teloxide-core/schema.ron | 2 +- crates/teloxide-core/src/payloads/send_poll.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/teloxide-core/schema.ron b/crates/teloxide-core/schema.ron index a1f2b939..e4206f77 100644 --- a/crates/teloxide-core/schema.ron +++ b/crates/teloxide-core/schema.ron @@ -1712,7 +1712,7 @@ Schema( names: ("sendPoll", "SendPoll", "send_poll"), return_ty: RawTy("Message"), doc: Doc( - md: "Use this method to send phone contacts. On success, the sent [Message] is returned.", + md: "Use this method to send a native poll. On success, the sent [Message] is returned.", md_links: {"Message": "https://core.telegram.org/bots/api#message"}, ), tg_doc: "https://core.telegram.org/bots/api#sendpoll", diff --git a/crates/teloxide-core/src/payloads/send_poll.rs b/crates/teloxide-core/src/payloads/send_poll.rs index 080b63d2..7e521263 100644 --- a/crates/teloxide-core/src/payloads/send_poll.rs +++ b/crates/teloxide-core/src/payloads/send_poll.rs @@ -8,7 +8,7 @@ use crate::types::{ }; impl_payload! { - /// Use this method to send phone contacts. On success, the sent [`Message`] is returned. + /// Use this method to send a native poll. On success, the sent [`Message`] is returned. /// /// [`Message`]: crate::types::Message #[derive(Debug, PartialEq, Eq, Hash, Clone, Serialize)]