From 3b3fbbac260f3605807312d6ca739d160e43375f Mon Sep 17 00:00:00 2001 From: Hamcha Date: Thu, 1 Sep 2016 14:07:38 +0200 Subject: [PATCH] Fix unsplash using old SendPhoto api --- mods/unsplash.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mods/unsplash.go b/mods/unsplash.go index 5d3ccb5..4a7720c 100644 --- a/mods/unsplash.go +++ b/mods/unsplash.go @@ -175,6 +175,6 @@ func unsplash(broker *tg.Broker, update tg.APIMessage) { broker.SendTextMessage(update.Chat, "ERRORE! @hamcha controlla la console!", &update.MessageID) return } - broker.SendPhoto(update.Chat, buf.Bytes(), "quote.jpg", nil, &update.MessageID) + broker.SendPhoto(update.Chat, buf.Bytes(), "quote.jpg", "", &update.MessageID) } }