mirror of
https://github.com/teloxide/teloxide.git
synced 2024-10-24 09:57:18 +02: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
|
/// 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
|
||||||
|
|
|
@ -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.
|
||||||
|
|
|
@ -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.
|
||||||
|
|
|
@ -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)]
|
||||||
|
|
Loading…
Reference in a new issue