139 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
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
fafa639328
HTML parse_mode check upgraded.
All supported tags permitted, malformed tags replaced with escaped characters
2022-12-12 22:43:44 +01:00
881d249256
Compliance with Telegram Bot API 6.3 2022-12-08 16:18:22 +01: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
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
fda4cac348
Import statements refactored 2020-11-15 21:34:18 +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
92e39e7ed7
Make general_handler handle photo updates 2020-09-05 10:36:00 +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
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
8c37d00602 In default keyboard, show only buttons for commands the user is authorized to call 2020-07-16 10:06:32 +02:00
bc51ed109a
Split outgoing documents bigger than 50 MB and send chunks 2020-06-22 22:56:21 +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
11d07b45d6 /calc command implemented 2020-05-18 15:08:15 +02:00
cf6a2e1baa Language-labelled commands are accepted only for selected language. /father uses selected language for commands 2020-05-14 18:50:23 +02:00
e6fdacd2f4 Allow language-labelled commands 2020-05-14 16:55:50 +02:00
a4079cf91d Implemented /father command.
It allows to see commands stored by BotFather, get default command list, change it and send it to BotFather.
2020-05-07 15:28:17 +02:00
edb2201773 Package updates checker implemented
Notify administrators when new versions are available for PyPi packages in `bot.packages`.
2020-04-27 13:48:33 +02:00
5a70dcfeb2 Implemented missing methods 2020-04-26 19:14:35 +02:00
212094bbb0 Fixed bug in multilanguage support for inline query answers 2020-04-20 20:12:06 +02:00
9c73337c53 Allow multilanguage support for inline query answers 2020-04-20 19:01:58 +02:00
fcb2de71d2 Handle multilanguage test in send_message and edit_message_text methods 2020-04-09 19:21:04 +02:00
87d95fbfed Create users table if missing 2020-04-07 14:00:39 +02:00
06d3569fbd IDE-guided adjustments 2020-04-06 22:20:17 +02:00
1f2a60d2f9 Syntax-error fixed 2020-02-21 00:09:56 +01:00
222713005f edit_message_media method implemented 2020-02-20 23:54:42 +01:00
0e7a93c5be Method to send disposable messages implemented 2020-02-20 19:34:06 +01:00
61cebd0c1f Multi-language support for administration core functions 2020-02-18 15:36:58 +01:00
f17333ca42 Provide a default multilanguage suggestions module 2020-02-17 12:14:52 +01:00
7f7ba35276 Merge branch 'develop' of ssh://davte.it:8445/Davte/davtelepot into develop 2020-02-10 15:54:49 +01:00
709f230266 Provide a shared_data attribute 2020-02-10 15:54:34 +01:00
c8a98b035f Merge branch 'develop' of ssh://gogs.davte.it:8445/Davte/davtelepot into develop
# Conflicts:
#	davtelepot/__init__.py
2020-01-24 13:34:25 +01:00
4f827587ee Mutable defaults removed 2020-01-19 19:09:58 +01:00
4abad7c423 Small improvement in download_file method
Generate new file name if no file name is provided; make sure it does 
not exist.
2020-01-08 10:30:47 +01:00
8565a96e15 Add users table with its fields if missing
Refactoring of previous version patch
2020-01-05 19:33:05 +01:00
1511b4742f Add user table if missing 2020-01-05 19:24:42 +01:00
581cfd750e Function to download files implemented 2020-01-04 18:34:17 +01:00
4acd10d344 Individual voice handler now supported 2020-01-04 17:21:02 +01:00
383418d955 send_voice method implemented 2020-01-04 15:09:16 +01:00
9ae8058017 send_audio method implemented
Send audio files by their id if available, otherwise send audio file 
from local path and store its telegram_id.
2020-01-04 12:50:44 +01:00