# -*- coding: utf-8 -*-
import requests
print("imported")
f = open("C:/Python/file.py", 'r+')
print("opened f = open")
file = f.read()
git_url = requests.get('https://raw.githubusercontent.com/nurlan0508/telegram-bot/master/TT/update/version.txt')
print("git url")
git_file = git_url.content
if str(file) < str(git_file):
print("if")
f.read()
f.truncate()
print("Truncated")
f.seek(0)
f.write(str(git_file.strip()))
f.close()
print("Closed")
b'2.4.7\n'