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

Can't change the api to PwrTelegram ! #34

Closed
ghost opened this issue Aug 30, 2016 · 8 comments
Closed

Can't change the api to PwrTelegram ! #34

ghost opened this issue Aug 30, 2016 · 8 comments

Comments

@ghost
Copy link

ghost commented Aug 30, 2016

Hey
I have found an api that have more features like uploading with bots up to 1.5 GB and ......
I have tested it with python-telegram-bot and it worked fine but when I try to change the api in Telegram.php in your framework my bot stops working please help !
This is the api by the way : https://api.pwrtelegram.xyz/bot[bot_id]/[method]

@Eleirbag89
Copy link
Owner

When i try to change the api url curl fails with this message:
error:1407742E:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert protocol version
I don't know if it's a problem with libcurl of my hosting or some weird configuration of the pwrTelegram server API.
You should try to ask them.

@Eleirbag89 Eleirbag89 changed the title Can't change the api ! Can't change the api to PwrTelegram ! Aug 31, 2016
@ghost
Copy link
Author

ghost commented Sep 1, 2016

I have already used it in other telegram bot frameworks and it worked fine I don't think the problem is from their api

@ghost
Copy link
Author

ghost commented Sep 1, 2016

By the way you can use it manually from your web browser to test it !
I did and worked !

@Eleirbag89
Copy link
Owner

I also did some test using browser and it works.
Btw i think there is a problem with libcurl in php. Did you try to use it on some other php bot framework ? If yes, wich one ?

@ghost
Copy link
Author

ghost commented Sep 2, 2016

Nope as I mentioned above I just tested it on python-telegram-bot ( https://github.com/python-telegram-bot/python-telegram-bot/ ) and pyTelegrambotAPI ( https://github.com/eternnoir/pyTelegramBotAPI ) I think your right , something must be wrong with the php!

@ghost
Copy link
Author

ghost commented Sep 2, 2016

I think I solved the problem !
You just need to change "https://api.pwrtelegram.xyz/" to "http://api.pwrtelegram.xyz/" !
I think the problem is with their ssl certificate !!
BTW do you think it's a secure way to send requests through non-ssl port ??

@Eleirbag89
Copy link
Owner

I'll never use it for a real bot.
It's already "unsecure" using a thidy part API (you are trusting them to not stole your bot id and that their server is secure from external threat).
If i were you, i'll open an issue asking the correct way to use php curl to contact their site, maybe they can give you a snippet or do some changes to make ssl working.

@NextGenZ
Copy link

NextGenZ commented Feb 6, 2018

@Eleirbag89 We can close this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants