1
0
Fork 0

Fix logging for telegram chat id

main
Daniele Tricoli 5 months ago
parent c7dc59ebc7
commit 8f3c97a532
  1. 2
      cmd/run.go

@ -43,7 +43,7 @@ the specified Mastodon account.`,
log.Println("Crating a new client for mastondon istance:", mastodon_instance)
max_characters := parseMastodonMaxCharacters(os.Getenv(MASTODON_TOOT_MAX_CHARACTERS))
allowed_telegram_chat := parseTelegramChatID(os.Getenv(TELEGRAM_CHAT_ID))
log.Println("Allowed telegram chat:", mastodon_instance)
log.Println("Allowed telegram chat id:", allowed_telegram_chat)
bot, err := tgbotapi.NewBotAPI(os.Getenv(TELEGRAM_BOT_TOKEN))
if err != nil {

Loading…
Cancel
Save