From 1a81ba5fef42d8a39c192d87d22dad21ece39051 Mon Sep 17 00:00:00 2001 From: Maybe Waffle <waffle.lapkin@gmail.com> Date: Sun, 26 Jun 2022 19:53:39 +0400 Subject: [PATCH] [TBA-6.1] Clarify in docs that login url must be https --- src/types/inline_keyboard_button.rs | 2 +- src/types/login_url.rs | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/types/inline_keyboard_button.rs b/src/types/inline_keyboard_button.rs index 464f10d8..59282fac 100644 --- a/src/types/inline_keyboard_button.rs +++ b/src/types/inline_keyboard_button.rs @@ -25,7 +25,7 @@ pub enum InlineKeyboardButtonKind { /// message_. Url(reqwest::Url), - /// An HTTP URL used to automatically authorize the user. Can be used as a + /// An HTTPS URL used to automatically authorize the user. Can be used as a /// replacement for the [Telegram Login Widget]. /// /// [Telegram Login Widget]: https://core.telegram.org/widgets/login diff --git a/src/types/login_url.rs b/src/types/login_url.rs index ba2c0d78..ef8e9a36 100644 --- a/src/types/login_url.rs +++ b/src/types/login_url.rs @@ -15,11 +15,11 @@ use serde::{Deserialize, Serialize}; #[serde_with_macros::skip_serializing_none] #[derive(Clone, Debug, Eq, Hash, PartialEq, Serialize, Deserialize)] pub struct LoginUrl { - /// An HTTP URL to be opened with user authorization data added to the query - /// string when the button is pressed. If the user refuses to provide - /// authorization data, the original URL without information about the user - /// will be opened. The data added is the same as described in [Receiving - /// authorization data]. + /// An HTTPS URL to be opened with user authorization data added to the + /// query string when the button is pressed. If the user refuses to + /// provide authorization data, the original URL without information + /// about the user will be opened. The data added is the same as + /// described in [Receiving authorization data]. /// /// [Receiving authorization data]: https://core.telegram.org/widgets/login#receiving-authorization-data ///