390 Commits

Author SHA1 Message Date
3bd1a9b679
Compliance with Telegram Bot API 6.6 and new command line interface to run bot or send a single message 2023-04-29 20:38:33 +02:00
0c3ed2070d
Compliance with Telegram Bot API 6.5 2023-02-03 21:38:20 +01:00
5c30dafd4c
Compliance with Telegram Bot API 6.4 2023-01-06 10:29:44 +01:00
27f9d62cf9
Make the regex dot match any character at all, including a newline, when cleaning HTML strings (so multiline tag bodies are allowed, as they are in Telegram HTML markdown). 2022-12-26 14:05:33 +01:00
fafa639328
HTML parse_mode check upgraded.
All supported tags permitted, malformed tags replaced with escaped characters
2022-12-12 22:43:44 +01:00
55b47ed1f7
Method to add a table and its columns to and ObjectWithDatabase 2022-12-10 18:46:20 +01:00
881d249256
Compliance with Telegram Bot API 6.3 2022-12-08 16:18:22 +01:00
fc486c60ce
When admin A requests profile picture of user B, send B's picture and not A's. 2022-12-06 22:18:51 +01:00
e813d37c8f
Browse users via /auth command 2022-12-05 22:10:30 +01:00
21f91fb07c
Syntax-breaking typo 2022-10-12 14:12:39 +02:00
50c2f92e8e
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 14:08:46 +02:00
d77c416ea6
send_document method should not require a chat_id since it can be passed an update object 2020-12-20 20:30:59 +01:00
e487764aad
send_photo method should not require a chat_id since it can be passed an update object 2020-12-11 08:22:16 +01:00
4bf00f0cc5
Avoid relative import statements 2020-11-19 15:18:44 +01:00
ed7e335d4e
Items in __all__ must be str, not module 2020-11-19 14:37:25 +01:00
d6a4a1d69a
Document can be None if document_path is provided 2020-11-19 12:32:58 +01:00
668822fc21
Do not log chardet INFO and DEBUG levels 2020-11-16 23:05:18 +01:00
135442dcd6
Compliance with Telegram Bot API 5.0 and improved type hinting for API methods. 2020-11-16 22:56:12 +01:00
eb11160a02
Version number 2020-11-15 21:35:38 +01:00
fda4cac348
Import statements refactored 2020-11-15 21:34:18 +01:00
773fe1fdb1
web should not be imported from aiohttp; use aiohttp.web instead 2020-11-15 20:55:43 +01:00
ddf25f8dd1
Store user profile pictures in bot database and show them in authorization panel 2020-10-07 16:32:51 +02:00
17b26ec23e
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:32:50 +02:00
68974c4c40
Pass all information to command handler when using /start 2020-09-26 19:28:18 +02:00
92e39e7ed7
Make general_handler handle photo updates 2020-09-05 10:36:00 +02:00
48b7e1e4a2
Updated examples 2020-08-23 14:21:45 +02:00
b797f3fffe
Remove argument parameter from parser decorator 2020-08-23 14:08:06 +02:00
3e19ba4c81
In text message handler, make available both lowered and original text and inspect condition parameters 2020-08-23 14:03:52 +02:00
e29bb08b7b
Accept language directly 2020-08-20 15:51:00 +02:00
7233f9e478
General handler implemented and applied to contact updates 2020-08-17 23:51:50 +02:00
e481623a75
Document handlers implemented 2020-08-16 15:18:02 +02:00
88835955ef Update default help messages with given ones, instead of replacing them 2020-07-17 09:48:39 +02:00
8c37d00602 In default keyboard, show only buttons for commands the user is authorized to call 2020-07-16 10:06:32 +02:00
ada375b766
Prevent decoding None objects 2020-07-15 13:15:48 +02:00
ed05d843bc
Async function to run shell commands 2020-07-15 13:11:45 +02:00
bc51ed109a
Split outgoing documents bigger than 50 MB and send chunks 2020-06-22 22:56:21 +02:00
76204ccd69
Script to merge split files 2020-06-22 22:56:16 +02:00
293a831958
Typos 2020-06-20 15:43:22 +02:00
fafc3de090
Send error message if database could not be sent - new version 2020-06-20 15:35:24 +02:00
5fe875e49c
Send error message if database could not be sent 2020-06-20 15:32:37 +02:00
1b4532e2cd Accept both updates and raw_updates in maintenance exception criteria 2020-05-21 15:32:16 +02:00
12cca835b9 Pass to handlers the parameters they take and preserve update_id 2020-05-21 14:55:51 +02:00
7ad4f48de1 Send long text messages as files 2020-05-19 15:20:34 +02:00
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
cd7392c2fd Prettify expressions removing whitespace around newlines and adjusting whitespace around parentheses 2020-05-19 12:53:29 +02:00
995bfee084 TypeError bug fixed 2020-05-18 22:25:41 +02:00
2131c6acf9 Prevent message is not modified exceptions 2020-05-18 22:08:48 +02:00
7f140371b6 Prettify expressions 2020-05-18 19:31:37 +02:00
a7fd054106 Multilanguage message in version command 2020-05-18 18:58:14 +02:00
1018876227 Remove whitespace at the end of the expression after del button is pressed 2020-05-18 18:50:31 +02:00