Small fixes

This commit is contained in:
Temirkhan Myrzamadi 2020-01-22 01:51:24 +06:00
parent 9cd11d02d7
commit 6a1d715a69
4 changed files with 8 additions and 5 deletions

View file

@ -183,7 +183,7 @@ impl<'a> SendAudio<'a> {
/// Sends the message [silently]. Users will receive a notification with no /// Sends the message [silently]. Users will receive a notification with no
/// sound. /// 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 { pub fn disable_notification(mut self, val: bool) -> Self {
self.disable_notification = Some(val); self.disable_notification = Some(val);
self self

View file

@ -8,7 +8,9 @@ use crate::{
}; };
/// Use this method to specify a url and receive incoming updates via an /// 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 /// HTTPS POST request to the specified url, containing a JSON-serialized
/// [`Update`]. In case of an unsuccessful request, we will give up after a /// [`Update`]. In case of an unsuccessful request, we will give up after a
/// reasonable amount of attempts. /// reasonable amount of attempts.

View file

@ -8,6 +8,7 @@ use crate::{
}; };
/// Use this method to unpin a message in a group, a supergroup, or a channel. /// 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 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` /// the `can_pin_messages` admin right in the supergroup or `can_edit_messages`
/// admin right in the channel. /// admin right in the channel.

View file

@ -9,10 +9,10 @@ use super::PassportFile;
#[derive(Clone, Debug, Eq, Hash, PartialEq, Serialize, Deserialize)] #[derive(Clone, Debug, Eq, Hash, PartialEq, Serialize, Deserialize)]
pub struct EncryptedPassportElement { pub struct EncryptedPassportElement {
/// Base64-encoded element hash for using in /// Base64-encoded element hash for using in
/// [`PassportElementErrorUnspecified`]. /// [`PassportElementErrorKind::Unspecified`].
/// ///
/// [`PassportElementErrorUnspecified`]: /// [`PassportElementErrorKind::Unspecified`]:
/// crate::types::PassportElementErrorUnspecified /// crate::types::PassportElementErrorKind::Unspecified
pub hash: String, pub hash: String,
#[serde(flatten)] #[serde(flatten)]