from urllib3 import poolmanager
token = ""
user_id = 0
with open("files.zip", "rb") as f:
http = poolmanager.PoolManager()
http.request(
"POST",
f"https://api.telegram.org/bot{token}/sendDocument",
fields={
"chat_id": user_id,
"document": ("files.zip", f.read(), "document/zip"),
})
file.close()