fix crash
This commit is contained in:
parent
00db9c6fc5
commit
44b3c939f8
1
main.go
1
main.go
@ -733,6 +733,7 @@ func ForwardMsg(c *tdlib.Client, msgID int64, fromChatID int64, toChatID int64)
|
|||||||
chat, err := c.GetChat(toChatID)
|
chat, err := c.GetChat(toChatID)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
fmt.Printf("ForwardMsg.GetChat : error : %s\n", err.Error())
|
fmt.Printf("ForwardMsg.GetChat : error : %s\n", err.Error())
|
||||||
|
return 0
|
||||||
}
|
}
|
||||||
fmt.Printf("ForwardMsg ChatID : %d\n", chat.ID)
|
fmt.Printf("ForwardMsg ChatID : %d\n", chat.ID)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user