Giter VIP home page Giter VIP logo

Comments (8)

Eleirbag89 avatar Eleirbag89 commented on May 16, 2024

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.

from telegrambotphp.

 avatar commented on May 16, 2024

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

from telegrambotphp.

 avatar commented on May 16, 2024

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

from telegrambotphp.

Eleirbag89 avatar Eleirbag89 commented on May 16, 2024

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 ?

from telegrambotphp.

 avatar commented on May 16, 2024

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!

from telegrambotphp.

 avatar commented on May 16, 2024

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 ??

from telegrambotphp.

Eleirbag89 avatar Eleirbag89 commented on May 16, 2024

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.

from telegrambotphp.

NextGenZ avatar NextGenZ commented on May 16, 2024

@Eleirbag89 We can close this.

from telegrambotphp.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.