From a3045bf9159c6dc37bbb810f6d7d76114dc9da5e Mon Sep 17 00:00:00 2001 From: Bartuccio Antoine Date: Wed, 6 May 2020 01:04:13 +0200 Subject: [PATCH] =?UTF-8?q?Meilleur=20affichage=20des=20citations=20sur=20?= =?UTF-8?q?les=20r=C3=A9ponses=20inline?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bot.go | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/bot.go b/bot.go index 0068d5a..07fd54a 100644 --- a/bot.go +++ b/bot.go @@ -118,10 +118,15 @@ func main() { url := fmt.Sprintf("%s/%s", cfg.Domain, sound.File) log.Println(url) results[i] = &tb.AudioResult{ - URL: url, - Caption: sound.Episode, + URL: url, + Caption: fmt.Sprintf( + "%s\n\n%s", + sound.Episode, + sound.Title, + ), Title: sound.Title, Performer: sound.Character, + ParseMode: tb.ModeHTML, } results[i].SetResultID(strconv.Itoa(i)) }