all repos — telegram-bot-api @ f57724f783b167bf0352f706bbaf9d1642572361

Golang bindings for the Telegram Bot API

Remove NewWebhookWithCertAndMaxConnections
This function is long and it is easy enough to just set the maximum
number of connections by modifying the returned struct.
Syfaro syfaro@foxpaw.in
Fri, 27 Jan 2017 11:38:15 -0600
commit

f57724f783b167bf0352f706bbaf9d1642572361

parent

3866c68e795c67225c59663bd0e84291512965f6

1 files changed, 0 insertions(+), 15 deletions(-)

jump to
M helpers.gohelpers.go

@@ -318,21 +318,6 @@ Certificate: file,

} } -// NewWebhookWithCert creates a new webhook with a certificate and max_connections. -// -// link is the url you wish to get webhooks, -// file contains a string to a file, FileReader, or FileBytes. -// maxConnections defines maximum number of connections from telegram to your server -func NewWebhookWithCertAndMaxConnections(link string, file interface{}, maxConnections int) WebhookConfig { - u, _ := url.Parse(link) - - return WebhookConfig{ - URL: u, - Certificate: file, - MaxConnections: maxConnections, - } -} - // NewInlineQueryResultArticle creates a new inline query article. func NewInlineQueryResultArticle(id, title, messageText string) InlineQueryResultArticle { return InlineQueryResultArticle{