fix crash

This commit is contained in:
shoopea 2021-11-11 23:35:32 +08:00
parent 00db9c6fc5
commit 44b3c939f8

View File

@ -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)