mirror of
https://github.com/teloxide/teloxide.git
synced 2025-03-14 11:44:04 +01:00
Document that .MP3 and .M4A files can be used as voice messages
This commit is contained in:
parent
09d7b06079
commit
ad6d5704eb
2 changed files with 2 additions and 2 deletions
|
@ -1038,7 +1038,7 @@ Schema(
|
|||
names: ("sendVoice", "SendVoice", "send_voice"),
|
||||
return_ty: RawTy("Message"),
|
||||
doc: Doc(
|
||||
md: "Use this method to send audio files, if you want Telegram clients to display the file as a playable voice message. For this to work, your audio must be in an .OGG file encoded with OPUS (other formats may be sent as [Audio] or [Document]). On success, the sent [Message] is returned. Bots can currently send voice messages of up to 50 MB in size, this limit may be changed in the future.",
|
||||
md: "Use this method to send audio files, if you want Telegram clients to display the file as a playable voice message. For this to work, your audio must be in an .OGG file encoded with OPUS, or in .MP3 format, or in .M4A format (other formats may be sent as [Audio] or [Document]). On success, the sent [Message] is returned. Bots can currently send voice messages of up to 50 MB in size, this limit may be changed in the future.",
|
||||
md_links: {
|
||||
"Audio": "https://core.telegram.org/bots/api#audio",
|
||||
"Document": "https://core.telegram.org/bots/api#document",
|
||||
|
|
|
@ -9,7 +9,7 @@ use crate::types::{
|
|||
|
||||
impl_payload! {
|
||||
@[multipart = voice]
|
||||
/// Use this method to send audio files, if you want Telegram clients to display the file as a playable voice message. For this to work, your audio must be in an .OGG file encoded with OPUS (other formats may be sent as [`Audio`] or [`Document`]). On success, the sent [`Message`] is returned. Bots can currently send voice messages of up to 50 MB in size, this limit may be changed in the future.
|
||||
/// Use this method to send audio files, if you want Telegram clients to display the file as a playable voice message. For this to work, your audio must be in an .OGG file encoded with OPUS, or in .MP3 format, or in .M4A format (other formats may be sent as [`Audio`] or [`Document`]). On success, the sent [`Message`] is returned. Bots can currently send voice messages of up to 50 MB in size, this limit may be changed in the future.
|
||||
///
|
||||
/// [`Document`]: crate::types::Document
|
||||
/// [`Audio`]: crate::types::Audio
|
||||
|
|
Loading…
Add table
Reference in a new issue