From cfcb1e9eed08eca3b39cfe9b79f766bb5def8096 Mon Sep 17 00:00:00 2001 From: Eduardo Date: Fri, 29 Mar 2024 00:40:13 +0100 Subject: [PATCH] added channel id command --- telegram.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/telegram.go b/telegram.go index b9790bf..ac6aff1 100644 --- a/telegram.go +++ b/telegram.go @@ -2,6 +2,7 @@ package main import ( "context" + "fmt" "log" "regexp" "strings" @@ -81,6 +82,9 @@ func handleCommand(chatId int64, command string) error { case "/help": err = sendTelegramMessage(chatId, "Currently my only comands are /start, /help and /sylph\n I'm a work in progress, please don't tease me.") + case "/channel_id": + err = sendTelegramMessage(chatId, "The ID of this chat is "+fmt.Sprint(chatId)+"") + case "/s", "/sylph", "/sylphi", -- 2.30.2