diff --git a/pybotx/client/smartapps_api/smartapp_custom_notification.py b/pybotx/client/smartapps_api/smartapp_custom_notification.py index 0e4ad6d2..7fc3d5a3 100644 --- a/pybotx/client/smartapps_api/smartapp_custom_notification.py +++ b/pybotx/client/smartapps_api/smartapp_custom_notification.py @@ -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( @@ -29,8 +29,8 @@ def from_domain( payload=BotXAPISmartAppCustomNotificationNestedPayload( title=title, body=body, - meta=meta, ), + meta=meta, ) diff --git a/pyproject.toml b/pyproject.toml index f4c12a64..06f2057c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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 ", diff --git a/tests/client/smartapps_api/test_smartapp_custom_notification.py b/tests/client/smartapps_api/test_smartapp_custom_notification.py index a39f4f62..257648ef 100644 --- a/tests/client/smartapps_api/test_smartapp_custom_notification.py +++ b/tests/client/smartapps_api/test_smartapp_custom_notification.py @@ -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(