M
M
MrBodyJs2021-05-10 00:29:55
In contact with
MrBodyJs, 2021-05-10 00:29:55

How to implement the use of several tokens at the same time (VK IO)?

How to implement the use of multiple tokens at the same time in longpoll? (i.e. running multiple bots at the same time)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Roman Shavukhin, 2021-05-23
@x3ron

from threading import Thread
def bot(token):
    # *авторизация и тп*
Thread(target=bot, args=('токен')).start()
Thread(target=bot, args=('токен2')).start()

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question