Closed wingeva1986 closed 1 year ago
Yes this api does support multi-users connection Example:
from poe_api_wrapper import PoeApi
import threading
token = "Token_here"
client1 = PoeApi(token)
client2 = PoeApi(token)
def t1_send():
for chunk in client1.send_message('a2', 'Nice to meet you'):
pass
def t2_send():
for chunk in client2.send_message('a2', 'Print hello world'):
pass
t1 = threading.Thread(target=t1_send)
t2 = threading.Thread(target=t2_send)
t1.start()
t2.start()
t1.join()
t2.join()
Hi, it seems that the example code no longer works. Poe seems to give the same response when two different messages are sent to the same bot at the same time.
Does the API support for multi-users connecting by calling
client[token] = PoeApi(token)
?