0
파이썬으로 텔레 그램에서 봇으로 멀티 프로세스를 수행하는 방법을 모른다. 하나의 스레드를 만들지 만이 스레드가 봇이 응답 메시지를 끝내지 않으면.전보 봇 파이썬과의 동시성 작업 방법
horaPurga= now.replace(hour=23, minute=36,second=59,microsecond=0)
def purga(threading.Thread):
now = datetime.now()
if now >= horaPurga :
bot.send_message(cid, 'pole')
def run():
while True:
purga.start()
time.sleep(2)