Skip to content

Commit

Permalink
link sticker [#463] cast url to str
Browse files Browse the repository at this point in the history
  • Loading branch information
adw0rd committed Dec 28, 2021
1 parent 21b783f commit 916c34d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions instagrapi/mixins/photo.py
Original file line number Diff line number Diff line change
Expand Up @@ -521,7 +521,7 @@ def photo_configure_to_story(
# instagram allow one link now
link = links[0]
self.private_request("media/validate_reel_url/", {
"url": link.webUri,
"url": str(link.webUri),
"_uid": str(self.user_id),
"_uuid": str(self.uuid),
})
Expand All @@ -536,7 +536,7 @@ def photo_configure_to_story(
rotation=link.rotation,
extra=dict(
link_type="web",
url=link.webUri,
url=str(link.webUri),
tap_state_str_id="link_sticker_default"
)
)
Expand Down
4 changes: 2 additions & 2 deletions instagrapi/mixins/video.py
Original file line number Diff line number Diff line change
Expand Up @@ -657,7 +657,7 @@ def video_configure_to_story(
# instagram allow one link now
link = links[0]
self.private_request("media/validate_reel_url/", {
"url": link.webUri,
"url": str(link.webUri),
"_uid": str(self.user_id),
"_uuid": str(self.uuid),
})
Expand All @@ -672,7 +672,7 @@ def video_configure_to_story(
rotation=link.rotation,
extra=dict(
link_type="web",
url=link.webUri,
url=str(link.webUri),
tap_state_str_id="link_sticker_default"
)
)
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@

setup(
name='instagrapi',
version='1.16.9',
version='1.16.10',
author='Mikhail Andreev',
author_email='[email protected]',
license='MIT',
Expand Down

0 comments on commit 916c34d

Please sign in to comment.