From 36ffa89aa6bfc59596193105efb3fec07a585f91 Mon Sep 17 00:00:00 2001 From: Amir Ali Omidi Date: Tue, 1 Sep 2015 02:00:13 +0430 Subject: [PATCH] Update README.md Fixed the SendAudio documentation --- README.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 74f14e8..a2def1a 100644 --- a/README.md +++ b/README.md @@ -39,9 +39,11 @@ if err != nil { return err } -// Next time you send &boom, telebot won't issue +audio := telebot.Audio{File: boom} + +// Next time you send &audio, telebot won't issue // an upload, but would re-use existing file. -err = bot.SendAudio(recipient, &boom, nil) +err = bot.SendAudio(recipient, &audio, nil) ``` Sometimes you might want to send a little bit complicated messages, with some optional parameters: