Steffo99 / greed

Customizable, multilanguage Telegram shop bot with Payments support
GNU Affero General Public License v3.0
523 stars 258 forks source link

Feature: Send a marketing message to all users #219

Open MartinCoh opened 10 months ago

MartinCoh commented 10 months ago

Describe the proposed feature

I think it would be nice to send a message to all users with updates or marketing content.

Reasoning

Can generate more sales for the people using this bot

Additional information

No response

Steffo99 commented 10 months ago

That's forbidden by Telegram's Terms of Service (even if many bots do it anyways).

MartinCoh commented 10 months ago

Are you sure @Steffo99? I couldn't find where it says it's forbidden.

I did find this in Telegram's Bot FAQ: https://core.telegram.org/bots/faq#how-can-i-message-all-of-my-bot-39s-subscribers-at-once

They say that they might offer the feature to do so themselves, and they even provide some advice on how to do it to avoid their messaging limits:

In order to avoid hitting our limits when sending out mass notifications, consider spreading them over longer intervals, e.g. 8-12 hours. The API will not allow bulk notifications to more than ~30 users per second, if you go over that, you'll start getting 429 errors.

Could you please reconsider this feature request? 🙏

Steffo99 commented 10 months ago

Huh! Seems like they changed their stance on it, that was the same page I remember reading a while ago!

Thanks for the notice! :sweat_smile:

(I don't think I'll have time to implement it any time soon, but I'm up for a pull request!)