Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Webhook setup via URL returns blank #1191

Open
azickri opened this issue Apr 14, 2024 · 0 comments
Open

Webhook setup via URL returns blank #1191

azickri opened this issue Apr 14, 2024 · 0 comments

Comments

@azickri
Copy link

azickri commented Apr 14, 2024

Bug Report

I have read:

I am using the latest version of the library.

Expected Behavior

I want to setup Webhook URLs directly using the API

Actual Behavior

I have tried to set Webhook via Telegram API directly with API as follows

https://api.telegram.org/{token}/setWebhook?url={webhookURL}

When I retrieve information about the Webhook with the API as follows

https://api.telegram.org/{token}/getWebhookInfo

The first time you retrieve information quickly after setting it up it matches the webhookURL you set, after a few seconds it returns to blank.

{
   "ok": true,
   "result": {
     "url": "",
     "has_custom_certificate": false,
     "pending_update_count": 0
   }
}

Steps to reproduce the Behavior

  1. Create a BOT Token
  2. Integrate BOT with this Package
  3. Set Webhook URL using API https://api.telegram.org/{token}/setWebhook?url={webhookURL}
  4. Retrieve Webhook related Information using API https://api.telegram.org/{token}/getWebhookInfo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant