TelegramBot.setWebhook

Set webhook to be used to receive incoming updates

More...
struct TelegramBot
@trusted deprecated
bool
setWebhook
(
string url
,
string[] allowed_updates = []
,
int max_connections = 40
)

Parameters

url string

HTTPS url to send updates to. Use an empty string to remove webhook integration

allowed_updates string[]

List the types of updates you want your bot to receive

max_connections int

Maximum allowed number of simultaneous HTTPS connections to the webhook for update delivery, 1-100

Return Value

Type: bool

true on success

Detailed Description

Deprecated: Webhooks aren't fully implemented, see an issue for more info

Throws

TelegramBotException on errors

See Also

Meta