T
T
thwip2018-07-09 19:36:09
Viber
thwip, 2018-07-09 19:36:09

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

2 answer(s)
A
Alexander, 2018-07-09
@AlexNineteen

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.

The user started a dialogue with the bot, what's next?
@app.route('/', methods=['POST'])
def incoming():
    if isinstance(viber_request, ViberSubscribedRequest):
        user_id = viber_request.sender.id
        # Здесь добавляйте user_id в базу данных

If something is not clear, write in the comments

D
Dimonchik, 2018-07-09
@dimonchik2013

In addition, there will be many of these users.

why telegrams are not suitable? and the way with a public acc?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question