Document that .MP3 and .M4A files can be used as voice messages

This commit is contained in:
Andrey Brusnik 2024-08-19 21:36:02 +04:00
parent 09d7b06079
commit ad6d5704eb
No known key found for this signature in database
GPG key ID: D33232F28CFF442C
2 changed files with 2 additions and 2 deletions

View file

@ -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",

View file

@ -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