mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2024-11-22 17:36:34 +03:00
Add shebangs and set proper file permissions
This commit is contained in:
parent
fb9104417e
commit
ca80b05694
1
docs/generate.py
Normal file → Executable file
1
docs/generate.py
Normal file → Executable file
|
@ -1,3 +1,4 @@
|
||||||
|
#!/usr/bin/env python3
|
||||||
import os
|
import os
|
||||||
import re
|
import re
|
||||||
import sys
|
import sys
|
||||||
|
|
1
run_tests.py
Normal file → Executable file
1
run_tests.py
Normal file → Executable file
|
@ -1,3 +1,4 @@
|
||||||
|
#!/usr/bin/env python3
|
||||||
import unittest
|
import unittest
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
|
|
0
telethon/crypto/auth_key.py
Executable file → Normal file
0
telethon/crypto/auth_key.py
Executable file → Normal file
0
telethon/crypto/factorizator.py
Executable file → Normal file
0
telethon/crypto/factorizator.py
Executable file → Normal file
0
telethon/crypto/rsa.py
Executable file → Normal file
0
telethon/crypto/rsa.py
Executable file → Normal file
0
telethon/helpers.py
Executable file → Normal file
0
telethon/helpers.py
Executable file → Normal file
0
telethon/network/__init__.py
Executable file → Normal file
0
telethon/network/__init__.py
Executable file → Normal file
0
telethon/network/authenticator.py
Executable file → Normal file
0
telethon/network/authenticator.py
Executable file → Normal file
0
telethon/network/mtproto_plain_sender.py
Executable file → Normal file
0
telethon/network/mtproto_plain_sender.py
Executable file → Normal file
0
telethon/network/tcp_client.py
Executable file → Normal file
0
telethon/network/tcp_client.py
Executable file → Normal file
0
telethon/network/tcp_transport.py
Executable file → Normal file
0
telethon/network/tcp_transport.py
Executable file → Normal file
|
@ -1,5 +1,5 @@
|
||||||
import platform
|
import platform
|
||||||
from datetime import datetime, timedelta
|
from datetime import timedelta
|
||||||
from hashlib import md5
|
from hashlib import md5
|
||||||
from mimetypes import guess_type
|
from mimetypes import guess_type
|
||||||
from os import listdir, path
|
from os import listdir, path
|
||||||
|
@ -518,7 +518,7 @@ class TelegramClient:
|
||||||
entity)
|
entity)
|
||||||
|
|
||||||
def send_media_file(self, input_media, entity):
|
def send_media_file(self, input_media, entity):
|
||||||
"""Sends any input_media (contact, document, photo...) to the given entiy"""
|
"""Sends any input_media (contact, document, photo...) to the given entity"""
|
||||||
self.invoke(
|
self.invoke(
|
||||||
SendMediaRequest(
|
SendMediaRequest(
|
||||||
peer=get_input_peer(entity),
|
peer=get_input_peer(entity),
|
||||||
|
@ -741,6 +741,6 @@ class TelegramClient:
|
||||||
self.sender.remove_update_handler(handler)
|
self.sender.remove_update_handler(handler)
|
||||||
|
|
||||||
def list_update_handlers(self):
|
def list_update_handlers(self):
|
||||||
return [ handler.__name__ for handler in self.sender.on_update_handlers ]
|
return [handler.__name__ for handler in self.sender.on_update_handlers]
|
||||||
|
|
||||||
# endregion
|
# endregion
|
||||||
|
|
0
telethon/tl/__init__.py
Executable file → Normal file
0
telethon/tl/__init__.py
Executable file → Normal file
0
telethon/tl/mtproto_request.py
Executable file → Normal file
0
telethon/tl/mtproto_request.py
Executable file → Normal file
0
telethon/tl/session.py
Executable file → Normal file
0
telethon/tl/session.py
Executable file → Normal file
0
telethon/utils/__init__.py
Executable file → Normal file
0
telethon/utils/__init__.py
Executable file → Normal file
0
telethon/utils/binary_reader.py
Executable file → Normal file
0
telethon/utils/binary_reader.py
Executable file → Normal file
0
telethon/utils/binary_writer.py
Executable file → Normal file
0
telethon/utils/binary_writer.py
Executable file → Normal file
0
telethon_generator/parser/__init__.py
Executable file → Normal file
0
telethon_generator/parser/__init__.py
Executable file → Normal file
0
telethon_generator/parser/source_builder.py
Executable file → Normal file
0
telethon_generator/parser/source_builder.py
Executable file → Normal file
0
telethon_generator/parser/tl_object.py
Executable file → Normal file
0
telethon_generator/parser/tl_object.py
Executable file → Normal file
0
telethon_generator/parser/tl_parser.py
Executable file → Normal file
0
telethon_generator/parser/tl_parser.py
Executable file → Normal file
|
@ -1,3 +1,4 @@
|
||||||
|
#!/usr/bin/env python3
|
||||||
import os
|
import os
|
||||||
import re
|
import re
|
||||||
import shutil
|
import shutil
|
||||||
|
|
1
try_telethon.py
Normal file → Executable file
1
try_telethon.py
Normal file → Executable file
|
@ -1,3 +1,4 @@
|
||||||
|
#!/usr/bin/env python3
|
||||||
import traceback
|
import traceback
|
||||||
|
|
||||||
from telethon.interactive_telegram_client import (InteractiveTelegramClient,
|
from telethon.interactive_telegram_client import (InteractiveTelegramClient,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user