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

Implement conditions for members #8

Open
1 of 2 tasks
y9san9 opened this issue Feb 20, 2021 · 3 comments
Open
1 of 2 tasks

Implement conditions for members #8

y9san9 opened this issue Feb 20, 2021 · 3 comments
Labels
enhancement New feature or request priority:normal

Comments

@y9san9
Copy link
Owner

y9san9 commented Feb 20, 2021

Right now that feature is already included in bot description, but is not done yet. So goal of this issue is to implement it.

Possible conditions

  • subscriptions on some channels
  • invite friends function

Conditions should be appeared in a giveaway description such as:

[TITLE]

Conditions:
- ...
- ...

[Participation hint]
@y9san9
Copy link
Owner Author

y9san9 commented Feb 20, 2021

Invite friend function is like bot's killer-feature, it should work as following:

I am giveaway creator and posting giveaway message. If the invite friends feature is enabled, there will be additional SwitchInlineQueryInlineKeyboardButton "Invite friends" with text "[command]_[giveawayId]_[referralId]".

The inline result of such text will be article:

Invitation to channel from [fullname]:

If you join [link] the sender of this message will be able to participate in giveaway

With reply markup of "Joined" button.

When the user you sent this inline message join channel and click "Joined", bot will check if user actually was subscribed and then allow you to participate in giveaway (if required amount of invited users is reached).

When giveaway raffled, bot should check again if at least required amount of users are still subscribed to channel (you can invite actually 5 users when giveaway requires only 3, but if two of invited will leave channel, you still can be winner)

Also there should be additional callback data button "Check subscribers" with answer how many your subscribers are still subscribed

@y9san9 y9san9 added the enhancement New feature or request label Feb 20, 2021
@y9san9
Copy link
Owner Author

y9san9 commented Feb 20, 2021

Important: User should be able to be invited into channel only one time, so it requires to create new table referrals: userId to channelId

@y9san9 y9san9 added this to the Road to production milestone Feb 25, 2021
@y9san9 y9san9 added the current-issue Issue we are working on label Apr 13, 2021
@y9san9
Copy link
Owner Author

y9san9 commented Apr 19, 2021

Still working, a lot of work done, a lot of work still should be done.

y9san9 added a commit that referenced this issue Apr 20, 2021
- started #8(2);
- updated some versions;
- refactoring;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request priority:normal
Projects
None yet
Development

No branches or pull requests

1 participant