Dan
0dc953c320
Update domain name references to pyrogram.org
2019-05-19 21:40:41 +02:00
Dan
518220431e
Docs revamp. Part 5
2019-05-18 01:45:01 +02:00
Dan
944b672fe5
Docs revamp. Part 4
2019-05-16 21:28:34 +02:00
Dan
90115448ac
Update link hint for No API Key found errors
2019-05-13 16:37:26 +02:00
Dan
ef912d21ef
Use more concise and cleaner description of a method and a type
2019-05-12 19:49:06 +02:00
Dan
eadda551c6
Docs revamp. Part 3
2019-05-12 19:26:55 +02:00
Dan
1737ba5f49
Revamp docs about the main Pyrogram package
2019-05-09 04:28:46 +02:00
Dan
bd9bb83df5
Reword some methods' docstring
2019-05-07 18:26:27 +02:00
Dan
591499121f
Add an hint about which client is loading the plugins
2019-05-06 17:40:40 +02:00
Dan
63d76a7f13
Bring back automatic mime type detection for new uploads ( fixes #239 )
...
- Add mime.types file to contain a good database of type -> ext mappings
from svn.apache.org/repos/asf/httpd/httpd/trunk/docs/conf/mime.types
- Load mime.type at BaseClient creation and add two convenience methods
for guessing mime types from filenames and extensions from mime types,
guess_mime_type and guess_extension
- Make all send_* method as well as download_media use the new mime type
database via guess_mime_type and guess_extension methods
2019-04-20 18:56:30 +02:00
Dan
4d1abbbb79
Make the deprecation warning actually work
2019-04-13 14:41:14 +02:00
Dan
b5c6db6db0
Refactor project and move errors namespace out from pyrogram.api
2019-03-25 11:23:45 +01:00
Dan
5edd971118
Update docs to use bot_token parameter
2019-03-22 12:39:15 +01:00
bakatrouble
5aa93b8287
Show TOS on signup just once while program is running ( #231 )
2019-03-20 14:20:38 +01:00
Dan
34b51b6481
Force keyword arguments for all TL types
2019-03-16 16:53:52 +01:00
Dan
a0e48572cb
Merge branch 'develop' into layer-95
2019-03-13 10:05:31 +01:00
Dan
64775f5209
Fix "ModuleNotFoundError is not defined" error for Python <3.6
2019-03-04 12:50:42 +01:00
Dan
ffa0da5800
Merge branch 'develop' into layer-95
...
# Conflicts:
# pyrogram/__init__.py
2019-03-01 18:38:27 +01:00
bakatrouble
f84f9ec4df
Add bot_token argument ( #221 )
...
* Add bot_token argument (closes #123 )
* Make session_name docs more readable and detailed
* Explicitely set is_bot=False
2019-03-01 18:30:39 +01:00
bakatrouble
b0c011c70c
Fix plugins import on windows ( #223 )
...
Fixes #217
2019-02-27 22:27:50 +01:00
Dan
712b390f77
Add a retry mechanism when uploading chunks
2019-02-05 17:10:00 +01:00
Dan
249e405339
Update API schema to Layer 95
2019-02-03 11:03:11 +01:00
Dan
628ddd4a25
Update Client's docstrings
2019-01-27 11:24:23 +01:00
Dan
a8a6f53e2d
Fix the configuration load process breaking in case of no plugins
2019-01-26 13:01:44 +01:00
Dan
be013de4d4
Fix plugins load via Client parameter
2019-01-16 20:25:48 +01:00
Dan
6ec3b12aeb
Smart plugins enhancements
2019-01-16 15:54:48 +01:00
Dan
3d16a715ad
Fix file using wrong line separator
2019-01-16 15:46:46 +01:00
Dan
6df7788379
Enhance proxy settings
...
- Allow proxy settings to omit "enabled" key
- Allow setting proxy to None in order to disable it
2019-01-16 13:10:01 +01:00
Dan
b37d4dc7ec
Make get_file and save_file handle StopTransmission errors
2019-01-11 14:03:16 +01:00
Dan
6b63e88de7
Add Client.stop_transmission() method
...
As a wrapper for raise StopTransmission
2019-01-11 14:02:40 +01:00
Dan
200ed844fe
Fix first_name and last_name not being called if they are callable
2019-01-11 13:02:19 +01:00
Dan
07276e31b9
Add restart method
2019-01-11 12:36:37 +01:00
Dan
66f70450aa
Allow phone_number, phone_code and password to also be functions
...
Also add recovery_code
References #163
2019-01-08 14:28:52 +01:00
Dan
4f6990d735
Add takeout parameter in Client
...
This lets the client use a takeout session instead of a normal one.
Takeout sessions are useful for exporting Telegram data. Methods invoked
inside a takeout session are less prone to throw FloodWait exceptions.
2019-01-03 12:20:42 +01:00
Dan
b53ba81a6a
Add no_updates parameter in Client
...
Useful to completely disable incoming updates for batch programs
2019-01-03 11:13:24 +01:00
Dan
4d7b1bafac
Update copyright year
2019-01-01 12:36:16 +01:00
Dan
64ec26850e
Document save_file
2018-12-28 15:16:46 +01:00
Dan
d91acfe2ca
Re-implement password-protected log-ins and support password recovery
2018-12-25 15:41:55 +01:00
Dan
fccadf526e
Merge branch 'develop' into future
...
# Conflicts:
# pyrogram/__init__.py
2018-12-25 14:36:59 +01:00
Dan
00e4e385aa
Allow bots to message old chats even if they don't exist in the session
2018-12-24 22:31:45 +01:00
Dan
84fef9ecf1
Add missing file_reference argument where applicable
2018-12-23 00:55:00 +01:00
Dan
bf0b947253
Type hint all Client methods
2018-12-19 14:55:48 +01:00
Dan
8f6f38e0b0
Merge branch 'develop' into new-parsers
2018-12-18 11:22:47 +01:00
Dan
bc824f738c
Add extra warnings when sign-ins or sign-ups fail
2018-12-18 11:21:37 +01:00
Dan
c9bcf93cf7
Add extra checks in case sign-in or sign-up fails
2018-12-18 10:10:04 +01:00
Dan
914dfca574
Reformat code and optimize imports
2018-12-18 09:50:39 +01:00
Dan
70470360b1
Print account name when logging in the first time
2018-12-15 11:10:25 +01:00
Dan
001a067d82
Make start and stop methods return self to make chaining possible
...
Suggestion by @CharlesBachman in Telegram
2018-12-15 09:50:35 +01:00
Dan
4ba5e63034
Report offset instead of 0 in case file size is missing (for file_id)
2018-12-15 08:51:20 +01:00
Dan
9c91720104
Fix broken download_media progress args
2018-12-15 08:50:08 +01:00