Skip to content

[Feature request] Send Commands via Telegram to start/stop servers #3001

@dproxinfo

Description

@dproxinfo

I am not always at the PC, but it would be a nice possibility to start/stop/monitor certain servers via Telegram. Telegram Bots offer the possibility to read out chats.
So also further persons could (re-)start servers from "on the way".

Further Information

An alarm function is already integrated in LinuxGSM. But I could not find an extended control.

Because you can read the chat of Telegram Bots, you could also implement the control of the servers.
Example:

  • Read out chat via URL https://api.telegram.org/botXXXXXXXXXX::XXXXXXXXXXXXX/getUpdates
  • filter important things (messageid, chatid, sender name, command)
    (- maybe check server status and if command is possible (you can't stop an already stopped server)
  • send it to linux shell
  • inform on telegram (several ways - see below)

Since programming is not my strength, I can unfortunately only offer suggestions.

Inform on telegram:

  1. Send info to user who wants to start/stop the server
  2. Send info to a special groupid (for example a group with all server admins)

Maybe you can filter the permissions by sender name or ChatID.

I can try to provide more information if needed.

dprox

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions