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

Any way to add the tags from telegram? #5

Open
luigifaticoso opened this issue Jan 18, 2018 · 2 comments
Open

Any way to add the tags from telegram? #5

luigifaticoso opened this issue Jan 18, 2018 · 2 comments

Comments

@luigifaticoso
Copy link

luigifaticoso commented Jan 18, 2018

Could it be possible to import the tags from telegram, separated by a comma, to an array of tags?
Using in the code something like this

from random import sample

tags = [ 'photography', 'landscape', 'portrait' , 'drone', 'travel', 'gopro', 'adventure', 'camera' , 'sony']

[...]

session.like_by_tags(sample(tags, 3), amount=20, media='Photo')

Could be an idea!

@Tkd-Alex
Copy link
Owner

I have thinking many time to this feature.
My idea is create a command like this:
/newhashtag <name> [list]

  • /newhashtag sample1 #a,#b#c
  • /newhashtag sample2 #e,#d#f

And when we set a new schedule use the command as
/set <name> <hh:mm:ss> <namesamplehash>
/set Now 13:45:00 sample1

What do you think about this?

@Tkd-Alex
Copy link
Owner

Anyway, i haven't developed this feature because the InstaPy script (code inside threadRun()) are personal and equal for all user using or not this Telegram-Bot.
For use tags imported by telegram the script need to be edit (for example) like this:

if telegramhashtag = True:
    session.like_by_tags(telegramhastag, amount=20, media='Photo')
else:
   session.like_by_tags(["#a", "#b", ...], amount=20, media='Photo')

Many users coming from instapy may have some difficulty with this configuration.
Another idea can be change /set command and guide the Telegram-Instapy user to create a new custom script (like a GUI) for example:

  • Would do you set like by?

    • Like by Locations
    • Like by Tags
    • Like by Feeds
  • Would you use a set of hashtags?

  • Would you unfollow user?

  • Would you comment photo?

This bot born for personal user but i'm very happy to improve it for all.
Any suggestion are welcome 😁

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants