diff --git a/routing_test.go b/routing_test.go index 3826e27..ed2e7ef 100644 --- a/routing_test.go +++ b/routing_test.go @@ -36,12 +36,14 @@ func TestRouting_addBotHandler(t *testing.T) { gock.New("https://api.telegram.org"). Post("/botbot123:test/getMe"). Reply(200). - BodyString(`{"ok":true,"status":200,"name":"TestBot"}`) + BodyString(`{"ok":true,"result":{"id":123,"is_bot":true,"first_name":"Test","username":"TestBot"}}`) ch := v1.Channel{ Type: "telegram", Events: []string{ "message_sent", + "message_updated", + "message_deleted", "message_read", }, } @@ -64,7 +66,6 @@ func TestRouting_addBotHandler(t *testing.T) { handler := http.HandlerFunc(addBotHandler) handler.ServeHTTP(rr, req) - if rr.Code != http.StatusCreated { t.Errorf("handler returned wrong status code: got %v want %v", rr.Code, http.StatusCreated) diff --git a/translate/translate.ru.yml b/translate/translate.ru.yml index 7cb57d6..242a20d 100644 --- a/translate/translate.ru.yml +++ b/translate/translate.ru.yml @@ -20,4 +20,4 @@ error_creating_connection: Ошибка при создании соединен connection_already_created: Соединение уже создано missing_url_key: Отсутствует URL или apiKey incorrect_url: Введите корректный URL CRM -incorrect_token: Установите корректный токен \ No newline at end of file +incorrect_token: Установите корректный токен diff --git a/web/style.css b/web/style.css index 366cf5e..d8942e2 100644 --- a/web/style.css +++ b/web/style.css @@ -21,4 +21,4 @@ #logo{ height: 80px; border-bottom: 1px solid red; -} \ No newline at end of file +}