Commit Graph

469 Commits

Author SHA1 Message Date
c4964105b4 Support Local Bot API Server (with custom api_url).
(cherry picked from commit 748ba624a4)
2024-02-17 14:47:28 +01:00
3396bc6f18 download_file method updated to handle exceptions and return information about downloaded file
(cherry picked from commit 41507067be)
2024-02-14 19:31:20 +01:00
c1f4abc541 Specify encoding in send_part_of_text_file function
(cherry picked from commit ec747bef1d)
2024-02-14 19:31:17 +01:00
c4a822e45d 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:55:03 +01:00
6b4a95be36 Method to add table columns if missing 2023-08-23 18:23:32 +02:00
beaf3f8516 Allow non-null standard output and/or error pipe to be passed to aio_subprocess_shell function 2023-08-23 17:17:55 +02:00
fc1f087d4a When answering inline queries, prevent invalid InlineQueryResultsButton instantiation
(cherry picked from commit eab81b065d)
2023-08-07 20:19:50 +02:00
aeac4aea52 Better variable regex: accept only one decimal separator in float numbers
(cherry picked from commit 51a77c695b)
2023-07-25 18:58:45 +02:00
5ab22909cf Whitespace 2023-07-25 16:42:26 +02:00
9094955812 Config command implemented, allowing administrators to add variables to configuration files 2023-07-25 16:25:56 +02:00
173783e154 Moved join_path function to utilities module 2023-07-25 16:24:18 +02:00
92a986d090 Catch up with branch main (v 2.9.1) 2023-07-25 16:23:21 +02:00
3e6e364336 Compliance with Telegram Bot API 6.5 2023-02-03 21:40:09 +01:00
f0a4c914e4 Compliance with Telegram Bot API 6.4 2023-01-06 10:30:25 +01:00
80a1440e75 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:12:23 +01:00
b978022658 HTML parse_mode check upgraded.
All supported tags permitted, malformed tags replaced with escaped characters
2022-12-12 22:45:08 +01:00
50f561e7f9 Method to add a table and its columns to and ObjectWithDatabase 2022-12-10 18:46:29 +01:00
a9b785f49d Compliance with Telegram Bot API 6.3 2022-12-08 16:19:45 +01:00
b7d08ab2ba When admin A requests profile picture of user B, send B's picture and not A's. 2022-12-06 22:18:35 +01:00
d362ec496b Browse users via /auth command 2022-12-05 22:04:59 +01:00
0bfc1e157b Working on users browsing via /auth command 2022-12-04 22:13:48 +01:00
bc40957b27 Syntax-breaking typo 2022-10-12 14:19:46 +02:00
45117610f9 Bug fix: use a unique loop 2022-10-12 14:01:10 +02:00
f91661927e Bug fix: use a unique loop 2022-10-12 13:34:01 +02:00
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