Skip to content

Commit

Permalink
fixup! feat(telegram): command to get chat id
Browse files Browse the repository at this point in the history
  • Loading branch information
Ivan Zuev committed Jan 28, 2022
1 parent c285520 commit 014770b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bridge/telegram/handlers.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import (
func (b *Btelegram) handleUpdate(rmsg *config.Message, message, posted, edited *tgbotapi.Message) *tgbotapi.Message {
// handle channels
if posted != nil {
if posted.Text == "/chat-id" {
if posted.Text == "/chatId" {
chatID := strconv.FormatInt(posted.Chat.ID, 10)

_, err := b.Send(config.Message{
Expand Down

0 comments on commit 014770b

Please sign in to comment.