Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

link sticker #463

Closed
mahdi-saberi opened this issue Nov 27, 2021 · 2 comments
Closed

link sticker #463

mahdi-saberi opened this issue Nov 27, 2021 · 2 comments
Labels
enhancement New feature or request

Comments

@mahdi-saberi
Copy link

as you know link sticker recently added to instagram, and now its public; so every body can use! would you please add it to project?

@adw0rd adw0rd added the enhancement New feature or request label Nov 27, 2021
adw0rd added a commit that referenced this issue Dec 26, 2021
adw0rd added a commit that referenced this issue Dec 26, 2021
@adw0rd
Copy link
Contributor

adw0rd commented Dec 26, 2021

Implemented in 1.16.6

@adw0rd adw0rd closed this as completed Dec 26, 2021
@adw0rd
Copy link
Contributor

adw0rd commented Dec 26, 2021

Photo:

>>> from instagrapi import Client
>>> from instagrapi.types import StoryLink

>>> cl = Client(proxy='http://123.123.123.123:40007')
>>> cl.load_settings('/tmp/dump.json')

>>> cl.photo_upload_to_story("/tmp/tmpg133wsw2.mp4.jpg", "", links=[StoryLink(webUri="http://adw0rd.com")])

Video:

>>> from instagrapi import Client
>>> from instagrapi.types import StoryLink
>>> from instagrapi.story import StoryBuilder

>>> cl = Client(proxy='http://123.123.123.123:40007')
>>> cl.load_settings('/tmp/dump.json')

>>> link = StoryLink(webUri="http://adw0rd.com")
>>> buildout = StoryBuilder("/tmp/tmptsktx_j6.mp4", "Test").video(5, link=link.webUri)
Moviepy - Building video /tmp/tmpxf3x57e8.mp4.
Moviepy - Writing video /tmp/tmpxf3x57e8.mp4

Moviepy - Done !
Moviepy - video ready /tmp/tmpxf3x57e8.mp4

>>>  cl.video_upload_to_story(buildout.path, "", stickers=buildout.stickers)
Analizing video file "/tmp/tmpxf3x57e8.mp4"
Generating thumbnail "/tmp/tmpxf3x57e8.mp4.jpg"...

Story(pk='2737326000305270904', id='2737326000305270904_29817608135', code='CX8736KovB4', ....

adw0rd added a commit that referenced this issue Dec 28, 2021
@adw0rd adw0rd pinned this issue May 27, 2022
Repository owner deleted a comment from adw0rd Sep 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants