This commit is contained in:
shoopea 2020-01-14 17:39:02 +08:00
parent e97ea8a71e
commit 08e73139bb

2
bot.go
View File

@ -106,7 +106,7 @@ func botQuery(q *tb.Query) {
func botText(m *tb.Message) {
PrintText(m)
if int64(m.OriginalSender.ID) == chtwrsbotID64 && m.IsForwarded() {
if m.IsForwarded() && m.OriginalSender != nil && int64(m.OriginalSender.ID) == chtwrsbotID64 {
cwm := ChatWarsMessage{
TGUserID64: int64(m.Sender.ID),
TGSenderUserID64: chtwrsbotID64,