[TBA-6.1] Clarify in docs that login url must be https

This commit is contained in:
Maybe Waffle 2022-06-26 19:53:39 +04:00
parent b1aab1a6e1
commit 1a81ba5fef
2 changed files with 6 additions and 6 deletions

View file

@ -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

View file

@ -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
///