413 Commits

Author SHA1 Message Date
6cf63716ff
Compliance with bot API 9.0
Also, the repository is not hosted on GiTea
2025-04-15 21:27:19 +02:00
9c61b564b1
Working on compliance with bot API 9.0 2025-04-13 00:00:51 +02:00
4a79535321
Compliance with bot API 8.02
Also, closed sessions are now removed from Bot.sessions
2025-02-01 16:46:33 +01:00
425902d2ac
Compliance with bot API 7.10 2024-09-06 16:01:50 +02:00
6759e5c704
Administrators may be set after administration module initialization
Do not check for administrators until bot has got information about itself. Prevent duplicate calls to bot.get_me() async method
2024-09-01 18:27:28 +02:00
db240ce199
Compliance with bot API 7.9
Implemented a system to get administration privileges if running the bot in absence of administrators (the token is provided through the command line).
2024-08-17 21:12:00 +02:00
02386d69da
Get package version from metadata when package has no __version__ attribute 2024-08-04 18:49:41 +02:00
cc4cbbacbd
Compliance with bot API 7.8 2024-08-04 18:29:21 +02:00
fd4374f328
Compliance with bot API 7.7 2024-07-07 14:36:58 +02:00
6b489363de
Compliance with bot API 7.2
- Included python version in `/version` command
- Added the parameter `business_connection_id` to the methods sendMessage, sendPhoto, sendVideo, sendAnimation, sendAudio, sendDocument, sendSticker, sendVideoNote, sendVoice, sendLocation, sendVenue, sendContact, sendPoll, sendDice, sendGame, and sendMediaGroup, sendChatAction.
- Moved the parameter `format` to Sticker instead of StickerSet (and related methods)
2024-04-13 11:15:42 +02:00
a343e095e8
Compliance with bot API 7.1
- Added the class ReplyParameters and replaced parameters reply_to_message_id and allow_sending_without_reply in the methods copyMessage, sendMessage, sendPhoto, sendVideo, sendAnimation, sendAudio, sendDocument, sendSticker, sendVideoNote, sendVoice, sendLocation, sendVenue, sendContact, sendPoll, sendDice, sendInvoice, sendGame, and sendMediaGroup with the field reply_parameters of type ReplyParameters.
- Added the class LinkPreviewOptions and replaced the parameter disable_web_page_preview with link_preview_options in the methods sendMessage and editMessageText.
2024-03-10 20:22:05 +01:00
a3b28bc1d6
Allow to overwrite file when using bot.download_file method 2024-03-05 18:50:03 +01:00
3969794075
download_file behaves differently if a local bot API server is used. Wrong default API url was being used 2024-02-17 15:44:04 +01:00
748ba624a4
Support Local Bot API Server (with custom api_url). 2024-02-17 14:47:09 +01:00
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