How to put a chat bot, and indeed Python application on the server or hosting, ie to be able to run not including the computer?

from vk_api import *
import time
vk=VkApi(login='*',password='*)
vk.auth()
def mess(s,resp,orr="):
 if responce['items'][0]['body']==s or response['items'][0]['body']==orr:
write_mes(item['user_id'],resp)
val={'out':0,'count':100,'time_offset':60}
responce = vk.method('messages.get',val)
vk.method('messages.get',val)
def write_mes(user_id,s):
vk.method('messages.send',{'user_id':user_id,'message':s})
while True:

 responce = vk.method('messages.get',val)
 if responce['items']:
val['last_message_id']=response['items'][0]['id']
 for item in response['items']:
while True:

 responce = vk.method('messages.get',val)
 if responce['items']:
val['last_message_id']=response['items'][0]['id']
 for item in response['items']:

not the whole code
the bot works well, but got only the computer is turned on and the app running. How to make so that it worked independently from my computer?
I'm a novice. Who is not difficult, explain please.
June 10th 19 at 16:26
1 answer
June 10th 19 at 16:28
Solution
  1. To purchase a VDS, for example, from FirstVDS (Ref, not the Ref) – the cheapest $ 90/month;
  2. To start the bot on the VDS.
  3. Safely turn off your computer.


For a start, you can also use free Heroku.

PS: On the referral link discount 25% first month :)
thank you! and what are the differences between free and paid? - cory_Will commented on June 10th 19 at 16:31

Find more questions by tags Python