Commit Graph

  • 37a2e6a9f2 Use default_message argument of get_message method Davte 2019-07-21 15:56:30 +02:00
  • fba4e4c143 get_message method now supports a default_message optional kwarg Davte 2019-07-21 15:39:59 +02:00
  • 6e95de61e9 More elegant way of /stopping bots Davte 2019-07-20 21:05:40 +02:00
  • 191a2d2ecb /stop command implemented Davte 2019-07-20 20:34:39 +02:00
  • ab63f56276 Log identifier if get_user_identifier method fails Davte 2019-07-20 19:29:00 +02:00
  • adf67c9ce1 Restart command implemented; user_record variable renamed Davte 2019-07-20 17:09:14 +02:00
  • 00bd5b24cd Return instructions if /auth is called without arguments Davte 2019-07-20 13:57:02 +02:00
  • ec8a882eba Logical error fixed Davte 2019-07-20 13:17:15 +02:00
  • 907d27b554 Ensure that field selected_language_code is added if not present Davte 2019-07-20 13:13:18 +02:00
  • c43c0be4fa Multilanguage support Davte 2019-07-20 13:05:26 +02:00
  • 10d53e8e1e Insert selected_language_code for new users (set to None). Davte 2019-07-20 13:04:54 +02:00
  • 4b3228b6bc /auth command and buttons Davte 2019-07-20 00:04:55 +02:00
  • 81cf37b0eb Option to switch off telegram profile linking Davte 2019-07-19 22:59:32 +02:00
  • dba337f5dc Authorization-related multilanguage messages Davte 2019-07-19 19:12:10 +02:00
  • 382ee2a4f1 Store users data and track changes Davte 2019-07-19 18:17:19 +02:00
  • cab54806a7 More general refactoring Davte 2019-07-19 17:25:47 +02:00
  • 4dd88a0b2c Authorization module to handle roles Davte 2019-07-19 17:08:53 +02:00
  • 3c12b00839 custom_parser does not exist anymore Davte 2019-07-19 16:45:32 +02:00
  • 6075e5513b Support for multiple languages Davte 2019-07-19 16:40:46 +02:00
  • a085fddf31 Use dot for relative imports Davte 2019-07-19 12:21:11 +02:00
  • e22854c77d aiohttp.web.Application does not take a loop argument anymore Davte 2019-07-19 10:50:29 +02:00
  • 65559814a4 Package information updated Davte 2019-07-19 10:47:46 +02:00
  • e8cf7cd421 Version 13 exposed secrets Davte 2019-07-19 10:07:24 +02:00
  • 600e3a3826 New version (12 was deleted due to token exposure) Davte 2019-07-19 10:03:29 +02:00
  • 44baf46406 Build wheels from sdist output, since the former ignores MANIEFST.in Davte 2019-07-19 10:02:46 +02:00
  • 7e0d871474 Exclude data/ and test*.py from distribution Davte 2019-07-19 09:39:42 +02:00
  • f8ec144719 Prevent AttributeError: 'NoneType' object has no attribute 'format' Davte 2019-07-18 17:45:47 +02:00
  • 948ebcd015 Used edit_message_text to reply if message_id is in kwargs Davte 2019-07-18 12:07:06 +02:00
  • 3cb912154b Typo Davte 2019-07-18 11:21:14 +02:00
  • 0557b67734 Backward compatibility: allow regular functions instead of coroutines Davte 2019-07-18 10:17:41 +02:00
  • a01ff8c486 Individual location handler Davte 2019-07-18 09:57:56 +02:00
  • 41f578cf21 reply general method defined: calls proper output method Davte 2019-07-18 09:56:40 +02:00
  • 2e5ef62dff Hide reply_markup from edited message if new message is sent with it Davte 2019-07-18 00:00:55 +02:00
  • 568694f3aa When editing message, make each message reply to the previous Davte 2019-07-17 23:55:59 +02:00
  • c331313f85 Bug in edit_message_text fixed: text instead of text_chunk Davte 2019-07-17 23:46:07 +02:00
  • 44055ff181 Allow new button syntax also in legacy mode (buttons with no data) Davte 2019-07-17 16:54:57 +02:00
  • afb2d26627 Updated dependencies in setup file Davte 2019-07-17 12:36:57 +02:00
  • f6cc57e70b Semplified dependencies Davte 2019-07-17 12:15:44 +02:00
  • 6c88412a54 Update requirements Davte 2019-07-17 11:56:00 +02:00
  • b6c8c7e5bc Prevent aiohttp from encoding file names as URLs Davte 2019-07-17 11:06:24 +02:00
  • f590d3d677 type(None) != None Davte 2019-07-17 00:21:55 +02:00
  • 4b27b26467 Support null answer to callback queries Davte 2019-07-17 00:18:43 +02:00
  • 9c008d5923 Pass only supported arguments to async_wrapped coroutines Davte 2019-07-16 23:58:56 +02:00
  • cb2092bef4 Backward compatibility with legacy custombot achieved Davte 2019-07-16 16:43:06 +02:00
  • ee7864f813 Whitespace Davte 2019-07-16 16:42:20 +02:00
  • ddc006a192 Property unauthorized_message was renamed Davte 2019-07-16 16:41:56 +02:00
  • 434d09c317 chosen_inline_result handler refactored Davte 2019-07-16 16:40:59 +02:00
  • 7e461be1bd Defined methods forward_message and delete_message Davte 2019-07-16 16:39:23 +02:00
  • d53051e6f3 Class method get defined. Davte 2019-07-16 16:38:53 +02:00
  • b0149da520 Example showing how to run more bots together Davte 2019-07-15 18:06:44 +02:00
  • 925c03b1ed Information updated Davte 2019-07-15 18:06:32 +02:00
  • 8ab1ec4461 Whitespace Davte 2019-07-15 18:06:08 +02:00
  • a6105e4fb1 Added information in webhook guide Davte 2019-07-15 17:24:06 +02:00
  • d640a21a5d Webhook guide Davte 2019-07-15 17:07:57 +02:00
  • 24482aecbc Append to secrets file instead of overwriting Davte 2019-07-15 17:07:26 +02:00
  • be8d06169d Example showing how to develop a simple bot with davtelepot Davte 2019-07-15 15:36:01 +02:00
  • f8cc0c1a22 Format unknown command message text passing self as bot. Davte 2019-07-15 15:30:22 +02:00
  • 3669680156 User higher level answer_inline_query method Davte 2019-07-15 15:02:38 +02:00
  • 052410ecf7 Fixed bugs in parser decorator Davte 2019-07-15 15:02:11 +02:00
  • 4c25c935bb New version Davte 2019-07-15 13:17:54 +02:00
  • 9f26352728 Button decorator signature changed Davte 2019-07-15 13:08:39 +02:00
  • a8a797a176 Bot decorators will pass only supported arguments to decorated functions Davte 2019-07-15 13:06:02 +02:00
  • e412548edf Added Bot() property callback_data_separator and method to set it Davte 2019-07-15 13:02:44 +02:00
  • f689d9b95a get_me method needed for legacy mode Davte 2019-07-14 20:01:07 +02:00
  • 0ac4553591 Documentation Davte 2019-07-13 18:26:12 +02:00
  • fc7da6d1bd telepot-powered functions replaced with new ones Davte 2019-07-13 16:44:13 +02:00
  • 9cc615df69 Keep admin_tools as legacy module, create new administration_tools Davte 2019-07-13 16:25:00 +02:00
  • f1a5d244df Method to set event handler in routing table Davte 2019-07-13 16:21:51 +02:00
  • 37d2b6f3d8 Set already_sent value, otherwise it may be referenced before assignment Davte 2019-07-12 14:53:35 +02:00
  • 367b112809 Inline query decorator refactored Davte 2019-07-12 14:40:55 +02:00
  • d6b7b3002e Fixed bug concerning wrong identifier in callback queries Davte 2019-07-12 14:40:35 +02:00
  • b19e7734e0 @bot.command and @bot.button parameter names changed Davte 2019-07-12 14:39:17 +02:00
  • b03b24fb2d Logical error in Bot().split_message_text method Davte 2019-07-12 14:31:09 +02:00
  • 7129e20e31 function renamed to handler Davte 2019-07-12 14:23:21 +02:00
  • e17b77490b Authorization function must accept user_record as argument Davte 2019-07-12 14:23:00 +02:00
  • 87a2f629c7 Commands, aliases and callback handlers must be checked in order Davte 2019-07-12 14:22:34 +02:00
  • 2a900ceea3 Pass user_record in addition to bot and update in routing cascade Davte 2019-07-12 14:21:54 +02:00
  • 34c2135962 Preliminary and final additional tasks implemented Davte 2019-07-12 14:19:15 +02:00
  • c00fce62aa Missing space Davte 2019-07-12 14:16:54 +02:00
  • d3d35b46d2 Useless assignments removed Davte 2019-07-12 14:16:47 +02:00
  • c46f6fee52 Catch specific Exception Davte 2019-07-12 14:16:38 +02:00
  • a2965be066 longest_cooldown_timedelta property defined Davte 2019-07-12 14:16:20 +02:00
  • 3decb01165 Dummy coroutine Davte 2019-07-12 14:14:12 +02:00
  • cff3c30481 Command decorator defined Davte 2019-07-12 12:40:35 +02:00
  • 8ee798af5e Get inline_query_id from update Davte 2019-07-12 12:40:20 +02:00
  • 8919fc08a3 Inline query handler refactored Davte 2019-07-12 12:39:55 +02:00
  • d692744b5b f-strings instead of string.format Davte 2019-07-12 12:36:49 +02:00
  • ec877aa98a async_wrapper is now more general Davte 2019-07-12 08:29:56 +02:00
  • e18299fcd6 Unnecessary indentation Davte 2019-07-11 18:30:35 +02:00
  • f135279503 Check that session is open before trying to close it Davte 2019-07-11 17:52:57 +02:00
  • 8ac12707b6 If bot has no messages attribute, set it Davte 2019-07-09 17:11:06 +02:00
  • a24d1b3ef5 Method to create views in database added Davte 2019-07-08 15:43:46 +02:00
  • dc5cc92867 Project modules must be imported with davtelepot. prefix Davte 2019-07-06 22:48:55 +02:00
  • c477f290dd Callback query handler written Davte 2019-07-03 22:29:27 +02:00
  • fd815e4c64 Wrapper for editMessageText method written Davte 2019-07-03 22:29:02 +02:00
  • 12bc2eba44 Chosen inline result handler written Davte 2019-07-03 20:47:26 +02:00
  • 80ea019d60 Inline query handler written Davte 2019-07-03 19:39:55 +02:00
  • 4036971302 Avoid second try, as it is useless Davte 2019-07-03 19:13:53 +02:00
  • 0610c0ce19 Wrapper for sendPhoto method Davte 2019-07-03 18:50:06 +02:00
  • 589e27bf0e Provide bot with an associated database (SQLite by default) Davte 2019-07-03 18:48:18 +02:00