Skip to content

Commit

Permalink
fix: Custom push fields
Browse files Browse the repository at this point in the history
  • Loading branch information
nidemidovich committed Nov 3, 2023
1 parent 8111a61 commit 37afbe8
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions pybotx/client/smartapps_api/smartapp_custom_notification.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@
class BotXAPISmartAppCustomNotificationNestedPayload(UnverifiedPayloadBaseModel):
title: str
body: str
meta: Missing[Dict[str, Any]]


class BotXAPISmartAppCustomNotificationRequestPayload(UnverifiedPayloadBaseModel):
group_chat_id: UUID
payload: BotXAPISmartAppCustomNotificationNestedPayload
meta: Missing[Dict[str, Any]]

@classmethod
def from_domain(
Expand All @@ -29,8 +29,8 @@ def from_domain(
payload=BotXAPISmartAppCustomNotificationNestedPayload(
title=title,
body=body,
meta=meta,
),
meta=meta,
)


Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "pybotx"
version = "0.60.0"
version = "0.60.1"
description = "A python library for interacting with eXpress BotX API"
authors = [
"Sidnev Nikolay <nsidnev@ccsteam.ru>",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ async def test__send_smartapp_custom_notification__succeed(
"payload": {
"title": "test",
"body": "test",
"meta": {"message": "ping"},
},
"meta": {"message": "ping"},
},
).mock(
return_value=httpx.Response(
Expand Down

0 comments on commit 37afbe8

Please sign in to comment.