Make upload_file private

This commit is contained in:
Lonami Exo
2022-01-26 12:24:45 +01:00
parent 070af28e85
commit f2ef0bfceb
6 changed files with 95 additions and 95 deletions

View File

@@ -37,7 +37,7 @@ KNOWN_NAMED_EXAMPLES = {
('lang_code', 'string'): "'en'",
('chat_id', 'int'): '478614198',
('client_id', 'long'): 'random.randrange(-2**63, 2**63)',
('video', 'InputFile'): "client.upload_file('/path/to/file.mp4')",
('video', 'InputFile'): "client._upload_file('/path/to/file.mp4')",
}
KNOWN_TYPED_EXAMPLES = {
@@ -50,8 +50,8 @@ KNOWN_TYPED_EXAMPLES = {
'double': '7.13',
'Bool': 'False',
'true': 'True',
'InputChatPhoto': "client.upload_file('/path/to/photo.jpg')",
'InputFile': "client.upload_file('/path/to/file.jpg')",
'InputChatPhoto': "client._upload_file('/path/to/photo.jpg')",
'InputFile': "client._upload_file('/path/to/file.jpg')",
'InputPeer': "'username'"
}