Telegram setWebhook with curl

  • Posted on: 4 January 2016
  • By: oon
Telegram API setWebhook

first, you can check current Webhook information:

curl -v https://api.telegram.org/botTOKEN/getWebhookInfo

replace TOKEN with your bot token, keep the "bot" before the TOKEN.

then setWebhook with:

curl -v -F "url=https://your.webhook.url" https://api.telegram.org/botTOKEN/setWebhook

that's all.

[1]https://core.telegram.org/bots/api

Tags: 

Add new comment

Filtered HTML

  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <blockquote> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.
By submitting this form, you accept the Mollom privacy policy.