import requests
import json
def api(method, args):
global token
data = requests.get('https://api.vk.com/method/'+method+'?'+args+'&access_token='+token)
return json.loads(data.text)
def send(argument):
global token
requests.get('https://api.vk.com/method/messages.send?user_id='+user_id+'&message='+argument+'&access_token='+token)
import fbot as vk
token = "Тут он есть"
print(vk.api("users.get","user_id=1"))
def set_token(new_token):
global token
token = new_token
import fbot as vk
vk.set_token("Тут он есть")