Giter VIP home page Giter VIP logo

Comments (6)

mukel avatar mukel commented on May 16, 2024

If you are using polling api.telegram.org:443 is enough (for everything).
What do you mean with "send requests via telnet"? Are using Webhooks? Can you elaborate more on your setup? Does any of the examples works on your prod environment?

from telegram.

emanueloliveira23 avatar emanueloliveira23 commented on May 16, 2024

Hi @mukel !

I used telnet just to test the connection and check if firewall really allowed the endpoint... And works.

About the prod. environment (overviewed): my bot is running on application in a docker container in a kubernetes Pod. No replications were made.

I also checked the keepalive timeouts and seems to be OK.

Locally, in development environment, It works fine.

There some errors logs about the connection to Telegram Bot API?

from telegram.

emanueloliveira23 avatar emanueloliveira23 commented on May 16, 2024

@mukel

Follows some verbose outputs from wget and curl:

wget

$ wget https://api.telegram.org/bot<token>/getMe 
--2019-03-22 13:23:24--  https://api.telegram.org/bot<token>/getMe
Resolving api.telegram.org (api.telegram.org)... 149.154.167.220, 2001:67c:4e8:f004::9
Connecting to api.telegram.org (api.telegram.org)|149.154.167.220|:443... connected.

curl

$ curl -v https://api.telegram.org/bot<token>/getMe
*   Trying 149.154.167.220...
* TCP_NODELAY set
* Connected to api.telegram.org (149.154.167.220) port 443 (#0)
* ALPN, offering h2
* ALPN, offering http/1.1
* successfully set certificate verify locations:
*   CAfile: /etc/ssl/certs/ca-certificates.crt
  CApath: /etc/ssl/certs
* TLSv1.2 (OUT), TLS handshake, Client hello (1):

And it stops here... I think that the problem is at SSL connection establishment.

from telegram.

emanueloliveira23 avatar emanueloliveira23 commented on May 16, 2024

@mukel

The problem isn't in your library.

Thanks for that.

Great work!

from telegram.

mukel avatar mukel commented on May 16, 2024

Good to hear you found the culprit. Please do spawn an issue if you have any further trouble with your bot.

from telegram.

emanueloliveira23 avatar emanueloliveira23 commented on May 16, 2024

Okay, @mukel .

Thanks for the library and your availability.

from telegram.

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.