Skip to content

Commit

Permalink
Update text for /start
Browse files Browse the repository at this point in the history
  • Loading branch information
fre5h committed Apr 17, 2022
1 parent f7e2489 commit 5a9ecd8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ func HandleTelegramWebHook(w http.ResponseWriter, r *http.Request) {
var result string
if "" == update.Message.Text {
result = "🤔 Вибачайте, але я вмію траслітерувати лише текстові повідомлення"
} else if "/start" == update.Message.Text {
result = "Просто напишіть мені текст на українській мові 🇺🇦 і у відповідь отримаєте транслітерований текст 🇬🇧"
} else {
result = transliteration.UkrToLat(update.Message.Text)
}
Expand Down

0 comments on commit 5a9ecd8

Please sign in to comment.