Telegram-InstaPy-Scheduling icon indicating copy to clipboard operation
Telegram-InstaPy-Scheduling copied to clipboard

Any way to add the tags from telegram?

Open luigifaticoso opened this issue 7 years ago • 2 comments

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!

luigifaticoso avatar Jan 18 '18 16:01 luigifaticoso

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 avatar Jan 18 '18 17:01 Tkd-Alex

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 :grin:

Tkd-Alex avatar Jan 18 '18 17:01 Tkd-Alex