🚚 Moved checking of sticker from commands to actions

This commit is contained in:
Maxim Lebedev 2018-01-19 19:43:26 +05:00
parent 471a30d6d5
commit a603eea78d
No known key found for this signature in database
GPG Key ID: F8978F46FF0FFA4F
2 changed files with 8 additions and 8 deletions

8
add.go
View File

@ -6,10 +6,6 @@ import (
)
func commandAdd(msg *tg.Message, pack bool) {
if msg.Sticker == nil {
return
}
T, err := switchLocale(msg.From.LanguageCode)
errCheck(err)
@ -36,6 +32,10 @@ func commandAdd(msg *tg.Message, pack bool) {
}
func actionAdd(msg *tg.Message, pack bool) {
if msg.Sticker == nil {
return
}
T, err := switchLocale(msg.From.LanguageCode)
errCheck(err)

View File

@ -6,10 +6,6 @@ import (
)
func commandDelete(msg *tg.Message, pack bool) {
if msg.Sticker == nil {
return
}
T, err := switchLocale(msg.From.LanguageCode)
errCheck(err)
@ -49,6 +45,10 @@ func commandDelete(msg *tg.Message, pack bool) {
}
func actionDelete(msg *tg.Message, pack bool) {
if msg.Sticker == nil {
return
}
T, err := switchLocale(msg.From.LanguageCode)
errCheck(err)