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

Telegram Bot. Groups. New feature "Inviter". #695

Open
grandmotivator opened this issue Apr 13, 2023 · 0 comments
Open

Telegram Bot. Groups. New feature "Inviter". #695

grandmotivator opened this issue Apr 13, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@grandmotivator
Copy link
Member

grandmotivator commented Apr 13, 2023

Add new feature for groups: Inviter. Its essence is that a reward is paid from the owner's account for each invitation to the group of a new member to the one who invited him. Payment is made anonymously on behalf of the group and not on behalf of the owner, and payment is made from the owner's account. At the same time, payment is possible only if the second user has a bot running, otherwise it is ignored.

In the function settings, the owner configures the cost for each new participant invited, not telegram bots. The currency is taken from the group settings, and if the currency is not specified, the function does not work.

The function can be activated/deactivated and configured only by the group owner.

Show text about the possibility of invitation in the personal group view and in the public group view.
This logic should work for new members, but should no longer work for those who previously left the group.

Unfortunately this does not work for channels, as the Telegram Bot API does not provide information about adding or removing subscribers in the same way that is available for members in groups.


Добавить новую функцию для групп: Inviter. Суть ее в том что со счета владельца выплачивается вознаграждение за каждое приглашение в группу нового участника тому кто его пригласил. Оплата идет анонимно от имени группы, а не от имени владельца, причем оплата идет со счета владельца. При этом оплата возможно только если у второго пользователя запущен бот, иначе игнорируется.

В настройках функции владелец настраивает стоимость за каждого приглашенного нового участника, не телеграм ботов. Валюту берется из настроек группы, и если валюта не указана, то функция не работает.

Функцию может активировать/деактивировать и настраивать только владелец группы.

Показывать текст о возможности приглашения в персональном просмотре группы и в просмотре публичных групп.

Эта логика должна работать для новых участников, и для ранее покинувших группу уже не должна работать.

К сожалению это не работает для каналов, так как Telegram Bot API не предоставляет информацию о добавлении или удалении подписчиков, таким же образом как это доступно для участников в группах.

@grandmotivator grandmotivator added the enhancement New feature or request label Apr 13, 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

1 participant