Skip to content

Commit

Permalink
fix: get first page of sticker packs (#404)
Browse files Browse the repository at this point in the history
  • Loading branch information
Kiruha01 committed Jul 25, 2023
1 parent 56c9999 commit ba11bbf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion pybotx/client/stickers_api/get_sticker_packs.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
from uuid import UUID

from pybotx.client.authorized_botx_method import AuthorizedBotXMethod
from pybotx.missing import Undefined
from pybotx.models.api_base import UnverifiedPayloadBaseModel, VerifiedPayloadBaseModel
from pybotx.models.stickers import StickerPackFromList, StickerPackPage

Expand All @@ -18,7 +19,7 @@ def from_domain(
limit: int,
after: Optional[str],
) -> "BotXAPIGetStickerPacksRequestPayload":
return cls(user_huid=huid, limit=limit, after=after)
return cls(user_huid=huid, limit=limit, after=after if after else Undefined)


class BotXAPIGetPaginationResult(VerifiedPayloadBaseModel):
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.55.7"
version = "0.55.8"
description = "A python library for interacting with eXpress BotX API"
authors = [
"Sidnev Nikolay <[email protected]>",
Expand Down

0 comments on commit ba11bbf

Please sign in to comment.