Steffo99 / greed

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

Help! How add Notification #134

Closed tripoflgb closed 3 years ago

tripoflgb commented 3 years ago

Hello! Help! How add Notification to all users from bd.User, when add new products???

Thanks.

Steffo99 commented 3 years ago

Please explain in more detail, I have no idea of what you mean...

tripoflgb commented 3 years ago

Please explain in more detail, I have no idea of what you mean...

Good day! I need that after adding a product, this product is sent as news to everyone who interacted with the bot, these are users of the bd.Users database.

An example - https://dev.to/princematthew/how-to-send-messages-to-all-users-that-interact-with-a-telegram-bot-3394, how can you integrate this solution into your bot ??

tripoflgb commented 3 years ago

Please explain in more detail, I have no idea of what you mean...

I know that I need to take all the user_id users from the database, and send them to them via telegram.Message

Steffo99 commented 3 years ago

Please explain in more detail, I have no idea of what you mean...

Good day! I need that after adding a product, this product is sent as news to everyone who interacted with the bot, these are users of the bd.Users database.

An example - https://dev.to/princematthew/how-to-send-messages-to-all-users-that-interact-with-a-telegram-bot-3394, how can you integrate this solution into your bot ??

The Telegram bot guidelines don't allow this, as it might be considered spamming; that's why it's not implemented...

Steffo99 commented 3 years ago

I suggest you make a Telegram channel and add your clients to it, so they that they may be notified of news about your shop.