depoio / node-telegram-bot

Client wrapper for Telegram Bot API (Under heavy development)
MIT License
136 stars 30 forks source link

setwebhook with self-signed certificate #39

Closed mansarip closed 8 years ago

mansarip commented 9 years ago

Telegram new updates :

Is there any way I can use self-signed cert? Thanks.

shernshiou commented 9 years ago

I will take a look.. Thanks for the update.

hbagheri commented 9 years ago

I have created my self-signed certificate using https://core.telegram.org/bots/self-signed. Then tried to upload my publick key (.pem) to telegram server using form below. seems it do not works yet? I have posted my my publick key (.pem) with name 'certificate' and webhook url with name of 'url' to 'https://api.telegram.org/bot+MYTOKEN/setWebhook' using a normal html form would any one please help me to solve it? How match time it may takes to active a webhook? It may is because of my hurry!

<form method='post' action="https://api.telegram.org/bot+MYTOKEN/setWebhook" enctype="multipart/form-data"> <b>URL:</b> <input name="url" type="text" /> <b>Pem:</b> <input name="certificate" type="file" /> <input type="submit" value="submit"/> <input type="reset" value="reset"/> </from>

shernshiou commented 9 years ago

@hbagheri I have not implemented self signed cert. I am looking into supporting this feature in the future.

shernshiou commented 8 years ago

Merge into issue #28