Giter Site home page Giter Site logo

Comments (3)

tulir avatar tulir commented on August 26, 2024

A basic ping command shouldn't be too hard, but telegram-mtproto doesn't properly throw errors, so it's hard to differentiate between different inactive states (logged out, connection problem, server salt problem, etc..).

from telegram.

MurzNN avatar MurzNN commented on August 26, 2024

Maybe we can do all checks via simply sending help command to botfather and check correct reply?

from telegram.

tulir avatar tulir commented on August 26, 2024

The ping command I added in eaff820 calls contacts.getContacts with a 2.5s timeout to determine if the connection is working. I don't think messaging a bot will help, since it won't give more specific errors. The problem is in telegram-mtproto, so we'll just have to wait for that to get fixed.

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.