From: Eduardo Date: Thu, 28 Mar 2024 23:40:13 +0000 (+0100) Subject: added channel id command X-Git-Url: http://git.edufdez.es/?a=commitdiff_plain;h=cfcb1e9eed08eca3b39cfe9b79f766bb5def8096;p=sylphiette-bot.git added channel id command --- 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",