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

Installation #1

Closed
MBoretto opened this issue Jul 1, 2015 · 2 comments
Closed

Installation #1

MBoretto opened this issue Jul 1, 2015 · 2 comments

Comments

@MBoretto
Copy link
Collaborator

MBoretto commented Jul 1, 2015

Hello! Very nice work!
I manage to install it becouse the method:
$telegram->setWebHook('https://yourdomain/yourpath_to_hook.php');
does not exist!
I tryed to add it like this
public function setWebHook($url_hook){
return Request::send('setWebhook',array('url'=>urlencode($url_hook)));
}

but i get a bad request from telegram api

finally i set up the web hook simply with:
https://api.telegram.org/bot{token}/setWebhook?url=https://yourdomain.org/yourpath/hook.php

Seems to me that telegram api don't accept escaped slash like:
https://yourdomain.org/yourpath/hook.php

@akalongman
Copy link
Member

My bad. Will be fixed in next release. Thanks for report

@akalongman
Copy link
Member

Fixed

MBoretto referenced this issue in MBoretto/php-telegram-bot Feb 23, 2016
MBoretto added a commit that referenced this issue Mar 13, 2016
Allow backwards compatibility when managing only one channel.
MBoretto pushed a commit that referenced this issue May 23, 2016
noplanman pushed a commit that referenced this issue Mar 12, 2017
Add tests for commands shown in help command.
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

2 participants