Answer the question
In order to leave comments, you need to log in
Sending messages in Viber at the user's request?
It is necessary for a specific user to send updates from the site. There will be three types of such announcements. Accordingly, the user must have three chats, which will receive updates. How can this be implemented? I did not find anything similar in the Viber API, there is only mailing from a public account. In addition, there will be many of these users.
Answer the question
In order to leave comments, you need to log in
1) Make a bot (public account)
2) Ask your users to start a chat with it
3) Save their viber-id
4) When necessary, send ads to these id
You can make three bots, the meaning does not change.
@app.route('/', methods=['POST'])
def incoming():
if isinstance(viber_request, ViberSubscribedRequest):
user_id = viber_request.sender.id
# Здесь добавляйте user_id в базу данных
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question