Commit Graph

445 Commits

Author SHA1 Message Date
12f3a2cc73 Bug fix: asyncio.run cannot take asyncio.gather as coroutine 2022-10-12 13:31:23 +02:00
25abb80343 Bug fix: no running loop, need to create a new one. 2022-10-12 13:26:03 +02:00
76ea65a660 asyncio get_event_loop method is being deprecated; use new_event_loop / get_running_loop and asyncio.run instead
Major version change because it may not be backward-compatible
2022-10-12 13:24:40 +02:00
e254dbf42a send_document method should not require a chat_id since it can be passed an update object 2020-12-20 20:30:49 +01:00
b7b91a65ea send_photo method should not require a chat_id since it can be passed an update object 2020-12-11 08:21:57 +01:00
abebff43d9 Avoid relative import statements 2020-11-19 15:18:50 +01:00
a460f71b69 Items in __all__ must be str, not module 2020-11-19 14:37:33 +01:00
6ad5ec2865 Document can be None if document_path is provided 2020-11-19 12:32:50 +01:00
cfae729270 Do not log chardet INFO and DEBUG levels 2020-11-16 23:05:24 +01:00
dc9c2a7b14 Compliance with Telegram Bot API 5.0 and improved type hinting for API methods. 2020-11-16 22:54:25 +01:00
a3cc676432 Identify edited methods (new or deprecated parameters) in addition to new methods. 2020-11-16 20:51:27 +01:00
15a7a58537 Version number 2020-11-15 21:35:45 +01:00
ea30fd39cf Import statements refactored 2020-11-15 21:34:26 +01:00
a5cabdd102 web should not be imported from aiohttp; use aiohttp.web instead 2020-11-15 20:55:22 +01:00
89fa73d1a5 Store user profile pictures in bot database and show them in authorization panel 2020-10-07 16:22:51 +02:00
4b22658bf5 MySQL compatibility: specify VARCHAR length
`db.types.string` becomes now `db.types.string(n)`
`db.types.text` is the wrong type to use (text blobs)
2020-10-07 16:19:03 +02:00
bce8cff3cf Pass all information to command handler when using /start 2020-09-26 19:28:03 +02:00
ea07aa47cf Make general_handler handle photo updates 2020-09-05 10:35:52 +02:00
d49bab54ca Updated examples 2020-08-23 14:21:37 +02:00
83d01e4da9 Remove argument parameter from parser decorator 2020-08-23 14:07:51 +02:00
59dde0d25e In text message handler, make available both lowered and original text and inspect condition parameters 2020-08-23 14:03:42 +02:00
713f4ffd0e Accept language directly 2020-08-20 15:50:53 +02:00
51bc95332f General handler implemented and applied to contact updates 2020-08-17 23:52:16 +02:00
92758d923c Document handlers implemented 2020-08-16 15:17:09 +02:00
946e2a881f Declare packenv variable 2020-07-19 16:17:39 +02:00
Davte
0f4d31892f Prevent globbing and word splitting 2020-07-19 16:11:00 +02:00
Davte
c4eaa0b9db Update default help messages with given ones, instead of replacing them 2020-07-17 09:48:52 +02:00
Davte
21214feb0a In default keyboard, show only buttons for commands the user is authorized to call 2020-07-16 10:05:28 +02:00
Davte
f7ee5b71a1 Prevent decoding None objects 2020-07-15 13:16:21 +02:00
Davte
fb58c0239d Async function to run shell commands 2020-07-15 13:11:04 +02:00
Davte
c848bfc228 Script to merge split files 2020-06-22 22:53:25 +02:00
Davte
f823057cbe Split outgoing documents bigger than 50 MB and send chunks 2020-06-22 20:30:03 +02:00
Davte
d7a1acd23b Typos 2020-06-20 15:44:26 +02:00
Davte
70053c9279 Send error message if database could not be sent - new version 2020-06-20 15:34:39 +02:00
Davte
1c76c7d797 Send error message if database could not be sent 2020-06-20 15:31:42 +02:00
Davte
dfffbff7c6 Merge 2020-06-20 15:20:22 +02:00
Davte
a4b1ed09a2 longest_cooldown_timedelta property defined 2020-06-20 15:18:13 +02:00
Davte
a1bd681cbf Merge 2020-06-20 15:16:46 +02:00
Davte
1b4532e2cd Accept both updates and raw_updates in maintenance exception criteria 2020-05-21 15:32:16 +02:00
Davte
9c57677320 Accept both updates and raw_updates in maintenance exception criteria 2020-05-21 15:32:04 +02:00
Davte
12cca835b9 Pass to handlers the parameters they take and preserve update_id 2020-05-21 14:55:51 +02:00
Davte
956e982157 Pass to handlers the parameters they take and preserve update_id 2020-05-21 14:55:32 +02:00
Davte
4bd10894a8 Merge branch 'master' into develop 2020-05-19 15:21:02 +02:00
Davte
7ad4f48de1 Send long text messages as files 2020-05-19 15:20:34 +02:00
Davte
e3cde032ba Small fixes in calculation command
- Consider `_` as a digit when prettifying expressions
- Shorten buffer time for calculation sessions
- Redundant escape
2020-05-19 15:20:23 +02:00
Davte
89a9863510 Send long text messages as files 2020-05-19 15:12:38 +02:00
Davte
ed36e53a28 Consider _ as a digit when prettifying expressions 2020-05-19 15:11:58 +02:00
Davte
8977e0fbc3 Shorten buffer time for calculation sessions 2020-05-19 14:04:02 +02:00
Davte
cf7e0c740b Redundant escape 2020-05-19 13:59:15 +02:00
Davte
cd7392c2fd Prettify expressions removing whitespace around newlines and adjusting whitespace around parentheses 2020-05-19 12:53:29 +02:00