Fix logging for telegram chat id
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
c7dc59ebc7
commit
8f3c97a532
|
@ -43,7 +43,7 @@ the specified Mastodon account.`,
|
||||||
log.Println("Crating a new client for mastondon istance:", mastodon_instance)
|
log.Println("Crating a new client for mastondon istance:", mastodon_instance)
|
||||||
max_characters := parseMastodonMaxCharacters(os.Getenv(MASTODON_TOOT_MAX_CHARACTERS))
|
max_characters := parseMastodonMaxCharacters(os.Getenv(MASTODON_TOOT_MAX_CHARACTERS))
|
||||||
allowed_telegram_chat := parseTelegramChatID(os.Getenv(TELEGRAM_CHAT_ID))
|
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))
|
bot, err := tgbotapi.NewBotAPI(os.Getenv(TELEGRAM_BOT_TOKEN))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
Loading…
Reference in a new issue