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