-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathstory.py
More file actions
27 lines (25 loc) · 815 Bytes
/
story.py
File metadata and controls
27 lines (25 loc) · 815 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# -*- coding: utf-8 -*-
import vk_api,os
from vk_api import VkUpload
print("\033[36m"+ r"""
_ _
| | (_)
___| |_ ___ _ __ _ ___ ___
/ __| __/ _ \| '__| |/ _ \/ __|
\__ \ || (_) | | | | __/\__ \
|___/\__\___/|_| |_|\___||___/
(https://github.com/1Rayko/VKTOOL)
"""+"\033[39m")
def main():
token = input("Токен:").strip()
vk_session = vk_api.VkApi(token=token)
try:
upload = VkUpload(vk_session)
except:
print("Невалидный токен")
main()
path = input("Путь к файлу:").strip()
type_ = input("Тип истории (photo или video):").strip()
upload.story(path,file_type=type_)
if __name__ == '__main__':
main()