Initial commit
This commit is contained in:
@@ -43,6 +43,12 @@ func telegramMsgParser(msg *echotron.Update) {
|
||||
return
|
||||
}
|
||||
|
||||
if msg.EditedMessage != nil && msg.EditedMessage.Text != "" {
|
||||
editedMessage(msg)
|
||||
|
||||
return
|
||||
}
|
||||
|
||||
// ChatMember updated event. It goes to chatMemberUpdated.go.
|
||||
if msg.ChatMember != nil {
|
||||
if msg.ChatMember.NewChatMember.User != nil {
|
||||
@@ -72,6 +78,24 @@ func telegramMsgParser(msg *echotron.Update) {
|
||||
return
|
||||
}
|
||||
|
||||
if msg.MessageReaction != nil {
|
||||
reaction(msg)
|
||||
|
||||
return
|
||||
}
|
||||
|
||||
if msg.MessageReactionCount != nil {
|
||||
reactionCount(msg)
|
||||
|
||||
return
|
||||
}
|
||||
|
||||
if msg.Message != nil && msg.Message.Photo != nil {
|
||||
photo(msg)
|
||||
|
||||
return
|
||||
}
|
||||
|
||||
Log.Debug(spew.Sdump(msg))
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user