test
This commit is contained in:
parent
e97ea8a71e
commit
08e73139bb
2
bot.go
2
bot.go
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user