changed botfather avatar and fixed import

This commit is contained in:
onysd 2026-07-24 00:54:19 +03:00
parent c436c7c773
commit 0a6c05404a
18 changed files with 318 additions and 108 deletions

View file

@ -110,13 +110,13 @@ func TestStarGiftRowJSONPreservesInt64AsDecimalStrings(t *testing.T) {
func TestDefaultGiftImportActionDecodes(t *testing.T) {
req := httptest.NewRequest(http.MethodPost, "/api/actions/import-default-gift", strings.NewReader(`{
"command_id":"c1","reason":"demo","confirm":true,"id":3
"command_id":"c1","reason":"demo","confirm":true,"id":3,"enabled":true
}`))
var got importDefaultStarGiftAPIRequest
if err := decodeJSON(req, &got); err != nil {
t.Fatalf("decode default gift action: %v", err)
}
if got.ID != 3 || got.CommandID != "c1" || !got.Confirm {
if got.ID != 3 || got.CommandID != "c1" || !got.Confirm || !got.Enabled {
t.Fatalf("decoded default gift action = %+v", got)
}
}