mirror of
https://github.com/tucnak/telebot
synced 2024-11-05 06:00:58 +00:00
commit
1492f3688f
@ -39,9 +39,11 @@ if err != nil {
|
|||||||
return err
|
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.
|
// 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:
|
Sometimes you might want to send a little bit complicated messages, with some optional parameters:
|
||||||
|
Loading…
Reference in New Issue
Block a user