Commit Graph
100 Commits
Author SHA1 Message Date
Davte 2131c6acf9 Prevent message is not modified exceptions 2020-05-18 22:08:48 +02:00
Davte 7f140371b6 Prettify expressions 2020-05-18 19:31:37 +02:00
Davte a7fd054106 Multilanguage message in version command 2020-05-18 18:58:14 +02:00
Davte 1018876227 Remove whitespace at the end of the expression after del button is pressed 2020-05-18 18:50:31 +02:00
Davte e19e022e12 Track input via message of algebraic expressions as well as input via buttons. 2020-05-18 18:33:56 +02:00
Davte 11d07b45d6 /calc command implemented 2020-05-18 15:08:15 +02:00
Davte 9ab3fb3616 /when command implemented 2020-05-14 22:19:01 +02:00
Davte 21222d3d18 /info command implemented 2020-05-14 22:19:00 +02:00
Davte 82d120dc58 /ping command implemented
/length command returns characters in text message even, not only in reply
2020-05-14 21:24:45 +02:00
Davte a7e1b40f93 Useful tools module added 2020-05-14 18:50:24 +02:00
Davte cf6a2e1baa Language-labelled commands are accepted only for selected language. /father uses selected language for commands 2020-05-14 18:50:23 +02:00
Davte e6fdacd2f4 Allow language-labelled commands 2020-05-14 16:55:50 +02:00
Davte f840f9fe13 /version command looks for updates 2020-05-13 19:45:15 +02:00
Davte d724442604 /ban command implemented 2020-05-13 15:28:49 +02:00
Davte 34cf987aa7 Implemented button to delete all commands stored by BotFather 2020-05-07 22:52:57 +02:00
Davte 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
Davte 3896776f0e Type hinting 2020-04-28 12:07:37 +02:00
Davte ab6a0bc0ad Do not notify package updates too often 2020-04-28 09:47:41 +02:00
Davte e61d757c1a New version 2020-04-28 00:35:00 +02:00
Davte a4ed0ec1b1 Deprecated admin_tools submodule 2020-04-28 00:27:19 +02:00
Davte e7274dce07 Text made more clear 2020-04-27 19:07:28 +02:00
Davte b107cc105d Missing whitespace 2020-04-27 18:00:53 +02:00
Davte 3e00381e0a Deprecated custombot submodule 2020-04-27 17:27:25 +02:00
Davte baf1dbbe62 Show all packages with /version command 2020-04-27 14:02:19 +02:00
Davte 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
Davte 5a70dcfeb2 Implemented missing methods 2020-04-26 19:14:35 +02:00
Davte 45ff81afbc Added a script to implement missing methods from Telegram website 2020-04-26 19:14:24 +02:00
Davte b0a2770177 Merge branch 'develop' of ssh://gogs.davte.it:8445/Davte/davtelepot into develop 2020-04-26 19:13:17 +02:00
Davte 96820b29c7 Typos and whitespace 2020-04-26 16:17:09 +02:00
Davte 6340b4d658 Notify new versions to admins 2020-04-24 00:51:21 +02:00
Davte 04699d0dd7 Merge branch 'develop' of ssh://gogs.davte.it:8445/Davte/davtelepot into develop 2020-04-23 23:41:34 +02:00
Davte 857486d046 Whitespace 2020-04-23 23:41:30 +02:00
Davte 212094bbb0 Fixed bug in multilanguage support for inline query answers 2020-04-20 20:12:06 +02:00
Davte 9c73337c53 Allow multilanguage support for inline query answers 2020-04-20 19:01:58 +02:00
Davte 5439bb7ddf Typo in italian /version command 2020-04-20 18:23:30 +02:00
Davte 5b215c5844 New version 2020-04-20 18:21:37 +02:00
Davte 187f80ac89 Merge branch 'develop' of ssh://gogs.davte.it:8445/Davte/davtelepot into develop 2020-04-20 18:21:10 +02:00
Davte 41bc5b68a4 Fix authorization function so that it extracts user_record from update 2020-04-20 18:20:44 +02:00
Davte 0b01ecbdd5 Wrong weekdays indexes fixed 2020-04-19 00:29:46 +02:00
Davte 91ab00eec6 Weekdays multilanguage dictionary 2020-04-11 16:12:13 +02:00
Davte fcb2de71d2 Handle multilanguage test in send_message and edit_message_text methods 2020-04-09 19:21:04 +02:00
Davte f29556300a Replace longer strings first 2020-04-07 14:55:26 +02:00
Davte 87d95fbfed Create users table if missing 2020-04-07 14:00:39 +02:00
Davte 06d3569fbd IDE-guided adjustments 2020-04-06 22:20:17 +02:00
Davte 76b7e50e52 Show davtelepot version in /version command 2020-02-22 15:41:18 +01:00
Davte 1f2a60d2f9 Syntax-error fixed 2020-02-21 00:09:56 +01:00
Davte 222713005f edit_message_media method implemented 2020-02-20 23:54:42 +01:00
Davte 0e7a93c5be Method to send disposable messages implemented 2020-02-20 19:34:06 +01:00
Davte 6120568170 Order commands in order of authorization level and then in alphabetical order 2020-02-20 18:16:59 +01:00
Davte b4ad650372 Redirect stderro to stdout 2020-02-20 11:42:52 +01:00
Davte 2448c45c3d Handle errors in /version command 2020-02-20 11:14:51 +01:00
Davte 4487034c7d Version command implemented 2020-02-20 11:06:47 +01:00
Davte 086750c77e Moved messages to dedicated module 2020-02-18 18:50:19 +01:00
Davte 61cebd0c1f Multi-language support for administration core functions 2020-02-18 15:36:58 +01:00
Davte 8d861757a1 Moved language messages into messages module 2020-02-18 10:32:26 +01:00
Davte 18e9490936 Create suggestions table if missing 2020-02-17 14:04:35 +01:00
Davte 67d52a8fd8 languages module added to __all__ 2020-02-17 13:43:07 +01:00
Davte 61ea563bfa Minor bugs fixed in suggestions module 2020-02-17 12:22:42 +01:00
Davte f17333ca42 Provide a default multilanguage suggestions module 2020-02-17 12:14:52 +01:00
Davte ceef3103f4 Prevent double keyword argument in async_wrapper 2020-02-16 13:40:45 +01:00
Davte 23b04d6207 Coroutine wrapper default arguments 2020-02-16 12:04:04 +01:00
Davte 0a05c1e1c1 Minor bug fixes 2020-02-14 17:42:15 +01:00
Davte ecdb639741 Include administration tools and helper modules in __all__ 2020-02-14 17:11:40 +01:00
Davte 61fe8e0591 Pass errors parameter in async_request function 2020-02-12 15:34:54 +01:00
Davte f73f438d32 Use built-in decoding feature of aiohttp.ClientResponse 2020-02-11 17:28:37 +01:00
Davte ab6849b5e0 Replace multiple whitespace in strings to be parsed 2020-02-11 14:43:15 +01:00
Davte c2b50bc42c Whitespace 2020-02-11 11:38:49 +01:00
Davte 9eea9a6632 Merged version 2020-02-10 15:55:12 +01:00
Davte 7f7ba35276 Merge branch 'develop' of ssh://davte.it:8445/Davte/davtelepot into develop 2020-02-10 15:54:49 +01:00
Davte 709f230266 Provide a shared_data attribute 2020-02-10 15:54:34 +01:00
Davte ebc7d93d95 Version update 2020-01-24 13:34:49 +01:00
Davte 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
Davte 87431b8596 Version alignment (again, hopefully for the last time) 2020-01-19 19:26:25 +01:00
Davte 19aac0e874 Version alignment (again) 2020-01-19 19:18:47 +01:00
Davte 0513c949e5 Version alignment 2020-01-19 19:14:57 +01:00
Davte 4f827587ee Mutable defaults removed 2020-01-19 19:09:58 +01:00
Davte 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
Davte 8565a96e15 Add users table with its fields if missing
Refactoring of previous version patch
2020-01-05 19:33:05 +01:00
Davte 33c242efc6 Release user table addition if missing 2020-01-05 19:27:02 +01:00
Davte 1511b4742f Add user table if missing 2020-01-05 19:24:42 +01:00
Davte 581cfd750e Function to download files implemented 2020-01-04 18:34:17 +01:00
Davte f9ec8a4419 Missing language strings should be logged as warnings, not errors. 2020-01-04 18:33:53 +01:00
Davte 4acd10d344 Individual voice handler now supported 2020-01-04 17:21:02 +01:00
Davte 383418d955 send_voice method implemented 2020-01-04 15:09:16 +01:00
Davte 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
Davte 807c62ca95 os-agnostic way to get file path 2019-12-29 22:51:05 +01:00
Davte 4c1ffb3382 Hack no longer needed to encode filenames
Thanks to tirkarthi.github.io, a simple parameter `quote_fields` can 
solve the issue which needed a messy workaround until now.
2019-12-27 21:08:29 +01:00
Davte 189a10ddbe utilities is a project module, not a third party one 2019-12-01 18:21:01 +01:00
Davte e7a30d0369 Allow command aliases to be a /command too. 2019-12-01 18:20:39 +01:00
Davte d30ed21de2 Typos 2019-12-01 12:42:05 +01:00
Davte 886c0c95e4 Typo 2019-12-01 12:40:05 +01:00
Davte 920554d465 Print statements removed 2019-11-28 18:12:15 +01:00
Davte 85341d7064 Placeholder system
Send a placeholder message or chat_action if the request takes some 
time.
2019-11-28 18:08:58 +01:00
Davte 74079fb481 Do not encode pictures as utf-8 2019-10-01 15:00:00 +02:00
Davte f02aa38200 Hide CSV button if no query_id is available 2019-09-29 20:18:14 +02:00
Davte 0e268414f9 Prevent UnboundLocalError 2019-09-29 20:16:39 +02:00
Davte aa6f45887e Allow addition of help sections 2019-08-18 23:23:48 +02:00
Davte 45e2bbfa3d Support for multilanguage /help command
A bot guide may be built automatically using @bot.command decorator.
2019-08-18 20:55:47 +02:00
Davte a2365f815d Handle unknown exceptions in getUpdates method 2019-08-15 13:45:32 +02:00
Davte 72a7dd5a5f Catch and return unexpected exceptions during API calls 2019-08-15 11:35:24 +02:00