mirror of
https://github.com/teloxide/teloxide.git
synced 2025-03-14 11:44:04 +01:00
Small fixes
This commit is contained in:
parent
9cd11d02d7
commit
6a1d715a69
4 changed files with 8 additions and 5 deletions
|
@ -183,7 +183,7 @@ impl<'a> SendAudio<'a> {
|
|||
/// Sends the message [silently]. Users will receive a notification with no
|
||||
/// sound.
|
||||
///
|
||||
/// [silantly]: https://telegram.org/blog/channels-2-0#silent-messages
|
||||
/// [silently]: https://telegram.org/blog/channels-2-0#silent-messages
|
||||
pub fn disable_notification(mut self, val: bool) -> Self {
|
||||
self.disable_notification = Some(val);
|
||||
self
|
||||
|
|
|
@ -8,7 +8,9 @@ use crate::{
|
|||
};
|
||||
|
||||
/// Use this method to specify a url and receive incoming updates via an
|
||||
/// outgoing webhook. Whenever there is an update for the bot, we will send an
|
||||
/// outgoing webhook.
|
||||
///
|
||||
/// Whenever there is an update for the bot, we will send an
|
||||
/// HTTPS POST request to the specified url, containing a JSON-serialized
|
||||
/// [`Update`]. In case of an unsuccessful request, we will give up after a
|
||||
/// reasonable amount of attempts.
|
||||
|
|
|
@ -8,6 +8,7 @@ use crate::{
|
|||
};
|
||||
|
||||
/// Use this method to unpin a message in a group, a supergroup, or a channel.
|
||||
///
|
||||
/// The bot must be an administrator in the chat for this to work and must have
|
||||
/// the `can_pin_messages` admin right in the supergroup or `can_edit_messages`
|
||||
/// admin right in the channel.
|
||||
|
|
|
@ -9,10 +9,10 @@ use super::PassportFile;
|
|||
#[derive(Clone, Debug, Eq, Hash, PartialEq, Serialize, Deserialize)]
|
||||
pub struct EncryptedPassportElement {
|
||||
/// Base64-encoded element hash for using in
|
||||
/// [`PassportElementErrorUnspecified`].
|
||||
/// [`PassportElementErrorKind::Unspecified`].
|
||||
///
|
||||
/// [`PassportElementErrorUnspecified`]:
|
||||
/// crate::types::PassportElementErrorUnspecified
|
||||
/// [`PassportElementErrorKind::Unspecified`]:
|
||||
/// crate::types::PassportElementErrorKind::Unspecified
|
||||
pub hash: String,
|
||||
|
||||
#[serde(flatten)]
|
||||
|
|
Loading…
Add table
Reference in a new issue