grammyjs / telegram.tools

Web-based tools for Telegram developers.
https://telegram.tools
GNU Affero General Public License v3.0
48 stars 11 forks source link

Rename Unlisted section #9

Closed KnorpelSenf closed 8 months ago

KnorpelSenf commented 8 months ago

It should be called one of the below.

The current name sounds like a to-do placeholder.

The description can be updated in accordance with the name change.

rojvv commented 8 months ago

In my opinion, these suggestions make sense only if we have more than a tool for connectivity test.

KnorpelSenf commented 8 months ago

Just add a tool that pings api.telegram.org if you really need to, but having a label that screams "I have no idea how to structure my site" in the most prominent position on the page does not seem like a good idea, so I feel like any name is better than the current one. Even not having a title at all would be better.

rojvv commented 8 months ago

Just add a tool that pings api.telegram.org if you really need to

Is there a web API to send ICMP requests?

KnorpelSenf commented 8 months ago

I am not aware of any. Would it suffice to just fetch("https://api.telegram.org") and measure the response time?

rojvv commented 8 months ago

CORS.

KnorpelSenf commented 8 months ago
$ curl -I https://api.telegram.org
HTTP/2 302 
server: nginx/1.18.0
date: Wed, 20 Mar 2024 16:54:56 GMT
content-type: text/html
content-length: 145
location: https://core.telegram.org/bots
strict-transport-security: max-age=31536000; includeSubDomains; preload
access-control-allow-origin: *
access-control-allow-methods: GET, POST, OPTIONS
access-control-expose-headers: Content-Length,Content-Type,Date,Server,Connection
rojvv commented 8 months ago

Yes, that is different from, for example, api.telegram.org/bot[TOKEN]/getMe.