remove ListenAll

This commit is contained in:
shoopea 2019-11-10 17:56:43 +08:00
parent be3c56480d
commit ddacb1fb27

View File

@ -111,7 +111,7 @@ func main() {
go PillageKnight(client) go PillageKnight(client)
go ListenDarkwing(client) go ListenDarkwing(client)
go ListenCW(client) go ListenCW(client)
go Listen(client) // go ListenAll(client)
go ListenGuild(client) go ListenGuild(client)
// go ForwardOwnMsg(client) // go ForwardOwnMsg(client)
@ -742,7 +742,7 @@ func ForwardOwnMsg(c *tdlib.Client) {
} }
} }
*/ */
func Listen(c *tdlib.Client) { func ListenAll(c *tdlib.Client) {
eventFilter := func(msg *tdlib.TdMessage) bool { eventFilter := func(msg *tdlib.TdMessage) bool {
updateMsg := (*msg).(*tdlib.UpdateNewMessage) updateMsg := (*msg).(*tdlib.UpdateNewMessage)
chatID := updateMsg.Message.ChatID chatID := updateMsg.Message.ChatID