Lonami Exo
cfc5ecfded
Fix tiny bug regarding .get_me(input_peer=True) crashing events
2018-02-25 10:35:39 +01:00
Lonami Exo
9ef75e5070
Allow specifying no event type to default to events.Raw
2018-02-24 18:25:22 +01:00
Lonami Exo
e5aecca79c
Update to v0.17.4
2018-02-24 18:08:14 +01:00
Lonami Exo
3301bf3ff6
Fix voice notes default filename being "None - None.oga"
2018-02-24 17:42:32 +01:00
Dmitry D. Chernov
7f97997e8d
Add PySocks to the package optional requirements
2018-02-24 18:41:53 +10:00
Dmitry D. Chernov
760d84514f
setup: Fix regex failure to match version in case of CRLF line feeds
...
This could happen e.g. in case of using pip3 to install Telethon directly from the git repo.
2018-02-24 18:25:08 +10:00
Joscha Götzer
b7a61510bf
Add !i for information to the interactive telegram client ( #614 )
2018-02-23 21:34:15 +01:00
Kyle2142
f9cec54c39
Add .get_participants() convenience method ( #639 )
...
Closes #363 and #380 .
2018-02-23 21:20:32 +01:00
Lonami Exo
a353679796
Fix downloading from another DC using wrong auth the first time
2018-02-23 13:13:39 +01:00
Lonami Exo
005a8f0a7f
Fix .send_file() not respecting MessageMedia captions
2018-02-23 12:10:07 +01:00
Lonami Exo
cda5e59e86
Make .send_message() accept another Message as input
2018-02-23 12:07:57 +01:00
Lonami Exo
448a04a7c5
Stop using InputPeerSelf() on events and special case edit()
...
Used to fail on the chat with your own (where messages are
"incoming" instead outgoing). Now the ID of the chat and
sender are compared to achieve the same effect. Fixes #632 .
2018-02-22 21:01:18 +01:00
Lonami Exo
f13a7e4afd
Allow getting the input peer for yourself and cache it
...
Warm-up for #632 , which needs this information accessible.
2018-02-22 20:37:56 +01:00
Lonami Exo
359cdcd772
Handle more parsing username cases ( closes #630 )
2018-02-22 10:27:12 +01:00
Lonami Exo
7f35ed59c6
Fix infinite recursion on .get_entity by exact name
2018-02-20 17:30:01 +01:00
Dmitry Bukhta
0731a1d698
Raise ProxyConnectionError instead looping forever ( #621 )
...
We shouldn't try reconnecting when using a proxy if what's
unavailable is the proxy server (and not Telegram servers).
2018-02-20 17:05:02 +01:00
Jannik
ea0da8fc0e
Add pattern argument on the NewMessage event ( #620 )
2018-02-20 15:55:02 +01:00
Lonami Exo
4050d1ca00
Support getting entities by exact name/title match
2018-02-19 21:05:39 +01:00
Lonami Exo
c31635cc34
Further validate the username on parse_username
2018-02-19 21:03:33 +01:00
Lonami Exo
39621ceae9
Use req_pq_multi instead req_pq when creating an auth_key
2018-02-19 20:31:47 +01:00
Lonami Exo
bf086f3e80
Fix UpdateDeleteMessages doesn't have .channel_id ( #619 )
2018-02-19 20:23:52 +01:00
Lonami Exo
1eeedc613b
Fix sending byte strings as files not working
2018-02-19 15:29:32 +01:00
Lonami Exo
b136074340
Update to v0.17.3
2018-02-19 15:29:02 +01:00
Lonami Exo
89df481ae4
Make MessageChanged.Event inherit NewMessage.Event
2018-02-18 14:07:13 +01:00
Lonami Exo
b93e1b5f50
Add add_event_handler and deprecate add_update_handler
2018-02-18 13:29:05 +01:00
Lonami Exo
1179c9e21b
Fix start not asking for password if needed
2018-02-18 12:17:02 +01:00
Lonami Exo
33fd6895d3
Use hachoir to determine audio and video metadata if possible
...
Closes #611
2018-02-17 13:01:12 +01:00
Lonami Exo
2bfe86cda1
Fix bot_token could not be specified alone on .start()
2018-02-17 12:32:30 +01:00
Lonami Exo
7c647b57e3
Mention cryptg as an optional dependency
2018-02-17 12:14:23 +01:00
Lonami Exo
d581589313
Add missing UpdateShortChatMessage case on events.NewMessage
2018-02-17 11:40:38 +01:00
Lonami Exo
6d993af338
Move events chats and blacklist_chats into the base, reuse code
2018-02-17 11:29:16 +01:00
Lonami Exo
8718cf0e7e
Reuse turning chats into a set of IDs and handle self case
2018-02-17 10:41:43 +01:00
Lonami Exo
3c6f34fe6a
Update examples
2018-02-16 21:02:47 +01:00
Lonami Exo
83d9d1d78e
Fix markdown parser not inverting delimiters dict
2018-02-16 20:30:19 +01:00
Lonami Exo
030f292203
Dump libssl bindings in favour of the new optional cryptg module
2018-02-16 18:24:44 +01:00
Lonami Exo
c11aefa95b
Fix message entities being ignored by edit_message
2018-02-16 13:42:12 +01:00
Lonami Exo
8194288797
Update to v0.17.2
2018-02-15 22:43:07 +01:00
Lonami Exo
75d99fbb53
Fix HTML entity parsing failing when needing surrogates
2018-02-15 11:52:46 +01:00
Lonami Exo
178643d3a1
Periodically send getState even without disconnect ( 341fb38
)
...
After some more tests, even if the server doesn't drop the
connection, it might also just stop sending updates at all.
2018-02-15 11:41:32 +01:00
Lonami Exo
196275e9c8
Add edit and delete shorthand methods to events.NewMessage
2018-02-15 11:35:12 +01:00
Lonami Exo
62c057a058
Add edit_message convenience method and refactor to accomodate it
2018-02-15 11:19:34 +01:00
Lonami Exo
80f918956a
Revert "official apps must be obfuscated" ( 29471f3
)
...
It didn't really make any sense and @danog keeps changing it.
2018-02-15 10:02:12 +01:00
Lonami Exo
e9dd93f09c
Further clarify the documentation (flood wait, lists and inputs)
2018-02-15 09:29:26 +01:00
Dmitry D. Chernov
55bcc29ae0
Errors: Fix passing 'self' to the constructors of the superclasses
...
This is necessary only if the superclass name is specified explicitly instead of super() call.
2018-02-14 17:09:22 +10:00
Lonami Exo
08b9d7c4ef
Add more logic to better retrieve input_sender on events
2018-02-13 10:24:35 +01:00
Lonami Exo
c83638ed0e
Add further logging calls to better spot lost requests
2018-02-12 13:40:00 +01:00
Lonami Exo
9abeefac7f
Send video files as video by default instead as document ( #601 )
2018-02-12 10:33:51 +01:00
Lonami Exo
0633e204c2
Fix whitelisting multiple chats on events not working
2018-02-11 10:30:45 +01:00
Lonami Exo
eca1e8ec87
Default to markdown parse mode on send_message
...
This is consistent with official clients and also provide
the expected result when replying to NewMessage events.
2018-02-10 10:45:55 +01:00
Lonami Exo
7d8d86c5f1
Support inline mentions (bot API style or username/phone)
2018-02-10 10:30:31 +01:00