399 Commits

Author SHA1 Message Date
41507067be
download_file method updated to handle exceptions and return information about downloaded file 2024-02-14 19:30:35 +01:00
ec747bef1d
Specify encoding in send_part_of_text_file function 2023-12-17 10:22:12 +01:00
199fe29cf1
Compliance with bot API 6.8 and 6.9
Added the method `unpinAllGeneralForumTopicMessages` (6.8).

Added the new administrator privileges `can_post_stories`, `can_edit_stories` and `can_delete_stories` to the class `ChatAdministratorRights` and to the method `promoteChatMember` (6.9).
2023-11-12 11:56:16 +01:00
41f38d0b23
Method to add table columns if missing 2023-08-23 18:23:17 +02:00
cf492f0c8b
Allow non-null standard output and/or error pipe to be passed to aio_subprocess_shell function 2023-08-23 17:17:26 +02:00
eab81b065d
When answering inline queries, prevent invalid InlineQueryResultsButton instantiation 2023-08-07 20:19:09 +02:00
51a77c695b
Better variable regex: accept only one decimal separator in float numbers 2023-07-25 18:58:31 +02:00
febe5cee3f
Config command implemented, allowing administrators to add variables to configuration files 2023-07-25 16:41:22 +02:00
fb04211e81
Whitespace and type mismatch 2023-04-29 20:56:32 +02:00
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