ALFRED/commands/on_text.go
2019-01-04 10:55:51 +01:00

20 lines
362 B
Go

/*
* @Author: Bartuccio Antoine
* @Date: 2018-07-24 12:09:37
* @Last Modified by: Bartuccio Antoine
* @Last Modified time: 2019-01-04 10:39:50
*/
package commands
import (
"git.klmp200.net/ALFRED/ALFRED/shared"
tb "gopkg.in/tucnak/telebot.v2"
)
// OnText saves chat history
func OnText(m *tb.Message) {
shared.History.AddMessage(m.Chat.ID, m.Text)
}