spongify_answer #19

Merged
klmp200 merged 4 commits from spongify_answer into master 2020-11-09 18:29:53 +00:00
Showing only changes of commit e786b77f62 - Show all commits

View File

@ -29,10 +29,10 @@ func Spongify(input_message string) string {
func Sponge(m *tb.Message) {
message := ""
if m.IsReply() {
message = Spongify(m.ReplyTo.Text)
} else {
message = Spongify(shared.History.LastMessage(m.Chat.ID))
}
shared.Bot.Send(m.Chat, message)
if m.IsReply() {
message = Spongify(m.ReplyTo.Text)
} else {
message = Spongify(shared.History.LastMessage(m.Chat.ID))
}
shared.Bot.Send(m.Chat, message)
}