telegram-bot-api icon indicating copy to clipboard operation
telegram-bot-api copied to clipboard

Request to add an unauthorized method for uptime monitoring

Open SpriteOvO opened this issue 5 months ago • 1 comments

I want to add monitoring for my self-hosted instance to my UptimeKuma, but there doesn't seem to be a method that doesn't require authorization and can return the instance status.

I propose adding a method /ping (not /botTOKEN/ping) that returns the following information

{
	"ok": true,
	"result": {
        "online": true, // Indicates that the local instance in online
        "connected": true // Indicates that the Telegram server is online
    }
}

It does not have to be a bool type, as long as there is a way to determine these statuses.

SpriteOvO avatar Aug 08 '25 06:08 SpriteOvO

You can use getWebhookInfo to get the current bot status and last error details.

levlam avatar Aug 08 '25 06:08 levlam