Skip to content

Commit

Permalink
Merge pull request #5 from Cosmos-Harry/release-1.0.0
Browse files Browse the repository at this point in the history
updating handleMessage
  • Loading branch information
Cosmos-Harry authored Jul 3, 2023
2 parents 8b2595b + 882dfbe commit 2565525
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion server.go
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ func (s *Server) Start() error {
handleUpdate := func(update *Update) {
switch {
case update.Message != nil:
s.handleMessage(update.Message)
s.handleMessage(update.Message)
case update.EditedMessage != nil:
s.editMessageHandler(update.EditedMessage)
case update.ChannelPost != nil:
Expand Down Expand Up @@ -354,4 +354,8 @@ func (s *Server) handleMessage(msg *Message) {
return
}
}
for _, handlerAuto := range s.messageHandlersAuto {
handlerAuto.f(msg)
return
}
}

0 comments on commit 2565525

Please sign in to comment.