Commit Graph
396 Commits
Author SHA1 Message Date
Davte 97a29406ca Authorization system implemented
Check if user is authorized to perform an action and return an 
authorization denied message if not.
2019-07-01 20:12:06 +02:00
Davte 80c746df20 Handle text message updates according to their subtype 2019-07-01 19:56:32 +02:00
Davte ab563c9486 Route updates according to their type calling associated method 2019-07-01 19:55:20 +02:00
Davte 2bb0ef9436 Maintenance system implemented
While under maintenance, route updates in a special way.
2019-07-01 16:42:17 +02:00
Davte d44e410101 Log "API" in case of TelegramError raised during API call 2019-07-01 15:54:33 +02:00
Davte 5927dcd30f Dump int, list and dict parameters as strings for API calls 2019-07-01 15:54:25 +02:00
Davte 5a0c658ea3 TelegramBot and TelegramError classes moved to dedicated api module. 2019-06-30 18:52:21 +02:00
Davte 3c8995b316 All API methods added manually 2019-06-30 18:47:49 +02:00
Davte 04733552c5 Exclude table header 2019-06-30 18:05:08 +02:00
Davte afaf686827 Get information from Telegram API guide 2019-06-30 17:56:22 +02:00
Davte bfbf4a17bd API methods added (more to come) 2019-06-30 10:41:02 +02:00
Davte 00e09ee79e API methods added (work in progress) 2019-06-30 00:53:49 +02:00
Davte 5aade209d3 adapt_parameters method renamed and cleaned 2019-06-29 20:27:46 +02:00
Davte 46a8e2f81b Beyond telepot: my own Telegram interaction logics 2019-06-29 20:17:33 +02:00
Davte a571d4fc8f Ignore data folders 2019-06-24 17:22:56 +02:00
Davte 9fccdcc51c custom_join function added
It joins elements of a list using a joiner and a final custom joiner
2019-06-24 16:17:52 +02:00
Davte b6f4465880 Import dependency 2019-06-07 21:30:26 +02:00
Davte 0bace2824a Version 2019-06-07 21:13:46 +02:00
Davte 9f91114e0e Added function to run aiohttp web apps in dedicated threads. 2019-06-07 21:12:59 +02:00
Davte 18fb69dff8 Instantiate dataset.Database object once and return it without re-instantiating it. 2019-06-05 12:49:47 +02:00
Davte 0fae3d305a Typo in doc string 2019-05-30 15:40:12 +02:00
Davte e906fc8c3a davteutil dependency removed since it is now included as submodule 2019-05-28 17:17:22 +02:00
Davte b9f826a2d0 davteutil.utilities imported
davteutil stand-alone repository will be deleted
2019-05-28 16:52:32 +02:00
Davte 8a524a4e55 Added a method to create views in bot's database
Given a list of dictionaries with `name` and `query` elements, overwrite 
or create a view.
2019-05-23 18:41:25 +02:00
Davte a2e1b0c11a Move repository to gogs.davte.it 2019-05-16 12:18:53 +02:00
Davte 454b021ee7 Push to gogs.davte.it and bitbucket with this script 2019-05-16 12:18:05 +02:00
Davte 9f06157234 New version 2019-03-28 20:05:33 +01:00
Davte 6b65129f74 Whitespace 2019-03-28 19:29:46 +01:00
Davte 9963296f41 Parenthesis 2019-03-28 19:25:54 +01:00
Davte bb7aa38913 Docstring 2019-03-28 19:19:30 +01:00
Davte 943171ac16 Whitespace in comments and docstrings 2019-03-28 19:17:55 +01:00
Davte e776792dee Bots must be instantiated via get 2019-03-28 19:09:19 +01:00
Davte 9d664849cd davteutil is required 2019-03-28 19:07:29 +01:00
Davte 25f0321250 Ignore all tests (3 digits) 2019-03-28 19:07:22 +01:00
Davte 3c2cdfa6a1 Ignore python virtual environment folder and test scripts 2019-03-28 18:43:23 +01:00
Davte 213a6ead1a Look for configuration file in script folder, not in working directory 2019-03-28 14:19:06 +01:00
Davte 10cc0bbb2d Handle location updates 2019-02-13 17:27:54 +01:00
Davte fb3e05681b davteutil.sleep_until was refactored 2019-02-12 18:27:58 +01:00
Davte 5aa51f7e8a Talk panel arguments sorted differently 2018-12-03 17:33:04 +01:00
Davte 7a52498939 Allow auto-naming of pictures 2018-11-28 19:07:01 +01:00
Davte 11b319d0a5 Bot().save_picture defined 2018-11-27 22:46:00 +01:00
Davte d988998198 Parentheses again 2018-11-26 18:37:45 +01:00
Davte ac40c16bea Parenthesis! 2018-11-26 18:34:56 +01:00
Davte 7881a97a73 Parentheses 2018-11-26 18:30:09 +01:00
Davte 2ab0712036 Talking sessions are now ready. 2018-11-26 17:32:21 +01:00
Davte 328258d2af Accept dict subclasses (such as OrderedDict) as update and user_record 2018-11-26 17:32:07 +01:00
Davte f38a6e7e10 If user_record is passed to get_message, extract language from it. 2018-11-26 17:04:29 +01:00
Davte 1a784b2b08 Typo; todos 2018-11-25 10:56:35 +01:00
Davte 085f473257 'string' != string
Log message edited
2018-11-25 01:09:47 +01:00
Davte 787fa7d164 Pass format kwargs to get_message 2018-11-25 01:07:24 +01:00