mirror of
https://github.com/teloxide/teloxide.git
synced 2025-03-13 11:18:17 +01:00
Fix docs
This commit is contained in:
parent
45183d4dcd
commit
706bd08c6b
2 changed files with 3 additions and 5 deletions
src
|
@ -465,7 +465,6 @@ impl Requester for Bot {
|
|||
|
||||
type ApproveChatJoinRequest = JsonRequest<payloads::ApproveChatJoinRequest>;
|
||||
|
||||
/// For Telegram documentation see [`ApproveChatJoinRequest`].
|
||||
fn approve_chat_join_request<C>(&self, chat_id: C, user_id: i64) -> Self::ApproveChatJoinRequest
|
||||
where
|
||||
C: Into<ChatId>,
|
||||
|
@ -478,7 +477,6 @@ impl Requester for Bot {
|
|||
|
||||
type DeclineChatJoinRequest = JsonRequest<payloads::DeclineChatJoinRequest>;
|
||||
|
||||
/// For Telegram documentation see [`DeclineChatJoinRequest`].
|
||||
fn decline_chat_join_request<C>(&self, chat_id: C, user_id: i64) -> Self::DeclineChatJoinRequest
|
||||
where
|
||||
C: Into<ChatId>,
|
||||
|
|
|
@ -23,16 +23,16 @@ impl_payload! {
|
|||
required {
|
||||
/// Unique identifier for the target chat or username of the target channel (in the format `@channelusername`)
|
||||
pub chat_id: ChatId [into],
|
||||
/// Type of action to broadcast. Choose one, depending on what the user is about to receive: typing for [text messages], upload_photo for [photos], record_video or upload_video for [videos], record_audio or upload_audio for [audio files], upload_document for [general files], choose_sticker for [`Stickers`], find_location for [location data], record_video_note or upload_video_note for [video notes].
|
||||
/// Type of action to broadcast. Choose one, depending on what the user is about to receive: typing for [text messages], upload_photo for [photos], record_video or upload_video for [videos], record_audio or upload_audio for [audio files], upload_document for [general files], choose_sticker for [stickers], find_location for [location data], record_video_note or upload_video_note for [video notes].
|
||||
///
|
||||
/// [text messages]: crate::payloads::SendMessage
|
||||
/// [photos]: crate::payloads::SendPhoto
|
||||
/// [videos]: crate::payloads::SendVideo
|
||||
/// [audio files]: crate::payloads::SendAudio
|
||||
/// [general files]: crate::payloads::SendDocument
|
||||
/// [video notes]: crate::payloads::SendVideoNote
|
||||
/// [stickers]: crate::payloads::SendSticker
|
||||
/// [location data]: crate::payloads::SendLocation
|
||||
/// [`Stickers`]: crate::payloads::Stickers
|
||||
/// [video notes]: crate::payloads::SendVideoNote
|
||||
pub action: ChatAction,
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue