You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sorry if this is wrong place but I cannot find any other place to ask questions.
I am trying to use setWebhook to register my web hook url and upload a self-signed certificate but running into issues:
I use setWebhook($url, $cert) where $url is https://mydomain/webhook/sometoken and $cert is inputFile resource ( i also tried with only filename which also seems acceptable and handled appropriately).
A dump of the return I get is this: object(Telegram\Bot\Objects\Message)#187 (1) { ["items":protected]=> array(1) { [0]=> bool(true) } }
What does this mean? Did it fail? It does not work as there are no incoming requests to my server when I trigger it with /start from a client.
The webhook did register because when I do a manual getUpdates() it complains that web hook is already present. If I remove the webhook I get a nice return from removeWebhook() and using getUpdates() manually thereafter works fine.
So my question is how do I figure out what the problem is? The url is correct, I've double checked it. I don't think the certificate is a problem as there is no entry in Apache access log of a request from Telegram.
Thanks.
The text was updated successfully, but these errors were encountered:
Sorry if this is wrong place but I cannot find any other place to ask questions.
I am trying to use setWebhook to register my web hook url and upload a self-signed certificate but running into issues:
I use
setWebhook($url, $cert)
where $url is https://mydomain/webhook/sometoken and $cert is inputFile resource ( i also tried with only filename which also seems acceptable and handled appropriately).A dump of the return I get is this:
object(Telegram\Bot\Objects\Message)#187 (1) { ["items":protected]=> array(1) { [0]=> bool(true) } }
What does this mean? Did it fail? It does not work as there are no incoming requests to my server when I trigger it with /start from a client.
The webhook did register because when I do a manual
getUpdates()
it complains that web hook is already present. If I remove the webhook I get a nice return fromremoveWebhook()
and usinggetUpdates()
manually thereafter works fine.So my question is how do I figure out what the problem is? The url is correct, I've double checked it. I don't think the certificate is a problem as there is no entry in Apache access log of a request from Telegram.
Thanks.
The text was updated successfully, but these errors were encountered: