@@ -34,30 +34,47 @@ $audio = "C:\audio\halo_on_fire.mp3"
3434Send-TelegramLocalAudio -BotToken $botToken -ChatID $chat -Audio $audio
3535```
3636
37-
3837Sends audio message via Telegram API
3938
4039### EXAMPLE 2
4140```
4241$botToken = "nnnnnnnnn:xxxxxxx-xxxxxxxxxxxxxxxxxxxxxxxxxxx"
4342$chat = "-nnnnnnnnn"
4443$audio = "C:\audio\halo_on_fire.mp3"
45- Send-TelegramLocalAudio \ `
46- -BotToken $botToken \ `
47- -ChatID $chat \ `
48- -Audio $audio \ `
49- -Caption "Check out this audio track" \ `
50- -ParseMode Markdown \ `
51- -Duration 495 \ `
52- -Performer "Metallica" \ `
53- -Title "Halo On Fire" \ `
54- -DisableNotification \ `
44+ Send-TelegramLocalAudio `
45+ -BotToken $botToken `
46+ -ChatID $chat `
47+ -Audio $audio `
48+ -Caption "Check out this audio track" `
49+ -ParseMode MarkdownV2 `
50+ -Duration 495 `
51+ -Performer "Metallica" `
52+ -Title "Halo On Fire" `
53+ -DisableNotification `
5554 -Verbose
5655```
5756
58-
5957Sends audio message via Telegram API
6058
59+ ### EXAMPLE 3
60+ ```
61+ $botToken = "nnnnnnnnn:xxxxxxx-xxxxxxxxxxxxxxxxxxxxxxxxxxx"
62+ $chat = "-nnnnnnnnn"
63+ $audio = "C:\audio\halo_on_fire.mp3"
64+ $sendTelegramLocalAudioSplat = @{
65+ BotToken = $botToken
66+ ChatID = $chat
67+ Audio = $audio
68+ Title = "Halo On Fire"
69+ Performer = "Metallica"
70+ Caption = "Check out this __awesome__ audio track\."
71+ ParseMode = 'MarkdownV2'
72+ }
73+ Send-TelegramLocalAudio @sendTelegramLocalAudioSplat
74+ ```
75+
76+ Sends audio message via Telegram API with properly formatted underlined word and escaped special character.
77+
6178## PARAMETERS
6279
6380### -BotToken
@@ -122,7 +139,7 @@ Accept wildcard characters: False
122139
123140### -ParseMode
124141Send Markdown or HTML, if you want Telegram apps to show bold, italic, fixed-width text or inline URLs in your bot's message.
125- Default is Markdown .
142+ Default is HTML .
126143
127144` ` ` yaml
128145Type : String
@@ -131,7 +148,7 @@ Aliases:
131148
132149Required : False
133150Position : 5
134- Default value : Markdown
151+ Default value : HTML
135152Accept pipeline input : False
136153Accept wildcard characters : False
137154` ` `
@@ -226,4 +243,9 @@ Use the BotFather https://t.me/BotFather
226243
227244[https://core.telegram.org/bots/api#sendaudio](https://core.telegram.org/bots/api#sendaudio)
228245
246+ [https://core.telegram.org/bots/api#html-style](https://core.telegram.org/bots/api#html-style)
247+
248+ [https://core.telegram.org/bots/api#markdownv2-style](https://core.telegram.org/bots/api#markdownv2-style)
249+
250+ [https://core.telegram.org/bots/api#markdown-style](https://core.telegram.org/bots/api#markdown-style)
229251
0 commit comments