mirror of
https://github.com/nikoksr/notify.git
synced 2025-02-11 13:15:34 +02:00
Fix AddReceivers
This commit is contained in:
parent
d6bfd2e9e7
commit
011cd2a766
@ -37,7 +37,7 @@ func New(apiToken string) (*Telegram, error) {
|
||||
func (t *Telegram) AddReceivers(chatIDs ...string) {
|
||||
for _, v := range chatIDs {
|
||||
chatID, err := strconv.ParseInt(v, 10, 64)
|
||||
if err != nil {
|
||||
if err == nil {
|
||||
t.chatIDs = append(t.chatIDs, chatID)
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user