mirror of
https://github.com/teloxide/teloxide.git
synced 2025-03-14 11:44:04 +01:00
[TBA-6.1] Clarify in docs that login url must be https
This commit is contained in:
parent
b1aab1a6e1
commit
1a81ba5fef
2 changed files with 6 additions and 6 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
///
|
||||
|
|
Loading…
Add table
Reference in a new issue