dyudin@Prince:~$ host mail.domru.ru
mail.domru.ru has address 212.33.226.105
dyudin@Prince:~$ host 212.33.226.105
105.226.33.212.in-addr.arpa domain name pointer mail.domru.ru.
dyudin@Prince:~$ host -tTXT domru.ru
domru.ru descriptive text "v=spf1 redirect=_spf.ertelecom.ru"
def get_message(token):
vk = vk_api.VkApi(token=token)
value = {'out': 0, 'count': 100, 'time_offset': 60}
res = vk.method('messages.getConversations', value)
if res['items']:
last = res['items'][0]['conversation']['peer']['id']
print(last)
pip install -U requests