diff --git a/main.go b/main.go index 4eb1f25..8c7ca7e 100644 --- a/main.go +++ b/main.go @@ -733,6 +733,7 @@ func ForwardMsg(c *tdlib.Client, msgID int64, fromChatID int64, toChatID int64) chat, err := c.GetChat(toChatID) if err != nil { fmt.Printf("ForwardMsg.GetChat : error : %s\n", err.Error()) + return 0 } fmt.Printf("ForwardMsg ChatID : %d\n", chat.ID)