go-telegram-bot-api / telegram-bot-api

Golang bindings for the Telegram Bot API
https://go-telegram-bot-api.dev
MIT License
5.57k stars 862 forks source link

How to set certificate on webhooks? #681

Open fgsoftware1 opened 10 months ago

fgsoftware1 commented 10 months ago

cannot use "cert.pem" (constant of type string) as tgbotapi.RequestFileData value in argument to tgbotapi.NewWebhookWithCert: string does not implement tgbotapi.RequestFileData (missing method NeedsUpload)

fardeadok commented 1 week ago

use FilePath("path to cert.pem")