Commit Graph

509 Commits (a57f15307bb4b8b4aceccaf7c5609ab19ba35603)

Author SHA1 Message Date
hikariatama a57f15307b 1.3.1
- Add fullchannel caching (`client.get_fullchannel`)
2022-08-09 21:28:02 +00:00
hikariatama f9857b609d Fix broken `PointerList` and `PointerDict` 2022-08-09 20:43:21 +00:00
hikariatama e712e0da12 Fix typo 2022-08-09 20:39:29 +00:00
hikariatama edfe1fdd15 1.3.1
check changelog for more info
2022-08-09 20:38:36 +00:00
Dan Gazizullin 8781d89b6c
Merge pull request #57 from penn5/patch-1
Fixes
2022-08-09 23:21:28 +03:00
penn5 04514169d9
delete broken code 2022-08-09 21:15:43 +01:00
penn5 eae4806549
Update _types.py 2022-08-09 21:14:07 +01:00
penn5 7d4ad92325
fix for hashable types 2022-08-09 21:13:36 +01:00
penn5 8e417eaf95
delete bad code 2022-08-09 21:07:39 +01:00
hikariatama aa170f4e89 fix typo 2022-08-09 17:46:42 +00:00
hikariatama 961dd58caf Fix typo 2022-08-08 21:20:26 +00:00
hikariatama 5f5ac8859e 1.3.1
- Remove legacy `self.get` migration from strings
- Add "forced exp_time" by using force and exp time if "current cache time" > forced exp_time replace it with current and force refresh it.
2022-08-08 21:10:19 +00:00
hikariatama 6f43fbc994 1.3.1
- Add `exp` and `force` params to `client.get_perms_cached`
- Add `self.pointer` to module instances
2022-08-08 21:04:58 +00:00
hikariatama a18f254384 Fix `RuntimeError` in tl cache 2022-08-08 20:37:20 +00:00
hikariatama 06917f188f 1.3.1
- Add caching to `utils.asset_channel`
- Add `channel` param to `utils.asset_channel` to actually create a channel, not supergroup
- Add watcher tags: `startswith`, `endswith`, `contains`, `regex`, `func`, `from_id`, `chat_id`
- Add buttons to `Choice` validator in `.config`
- Add new types: `PointerInt`, `PointerList`, `PointerTuple`, `PointerDict`, `PointerStr`, `PointerBool`
- Add `db.pointer`
- Add support for multiaccounting on Heroku
- Add ability to edit only reply markup or only media of message, w/o touching the actual text
- Add support for `@loader.command`-like commands in inline caller finder
- Add `utils.find_caller`
- Add possible cause of error in logs (module and method)
- Add `client.get_perms_cached` to cache native `client.get_permissions`
- Change errors format in web to more human-readable
- Change visible line of traceback in logs to be the last one
- Fix bug with custom_bot option on installation page
- Fix `RecursionError` in entity cacher
- Fix command execution with space between prefix and command
- Fix `utils.answer` for forwarded messages
- Remove `heroku3` from classic requirements, along with heroku installation code snippet
- Remove `termux_requirements.txt`
2022-08-08 20:32:54 +00:00
hikariatama fed8d35a0d Fix `@loader.inline_handler` processing 2022-08-03 20:04:43 +00:00
Dan Gazizullin 1fd2966ca6
Merge pull request #55 from hikariatama/v1.3.0
V1.3.0
2022-08-03 21:51:46 +03:00
hikariatama a4b6125618 `Black` refactored 2022-08-03 18:50:28 +00:00
Dan Gazizullin 7627caeb86
Merge pull request #56 from hikariatama/sourcery/v1.3.0
V1.3.0 (Sourcery refactored)
2022-08-03 21:49:46 +03:00
Sourcery AI 59fab0a092 'Refactored by Sourcery' 2022-08-03 18:03:12 +00:00
hikariatama 21d0b5fc45 Deepsource fixes 2022-08-03 17:57:59 +00:00
hikariatama 7b0cd6e32d 1.3.0
- Fix typo in hikka_config
2022-08-03 17:43:08 +00:00
hikariatama 183ef61bd7 1.3.0
- Remove unnecessary prefix in command fail message
2022-08-03 17:35:50 +00:00
hikariatama 1af726b4b5 1.3.0
- Update quickstart
- Fix minor bugs
2022-08-03 16:20:25 +00:00
hikariatama bd5aaa1082 Increase reaction delay in order to prevent floodwaits 2022-08-03 14:46:39 +00:00
hikariatama b4d1ef7db1 1.3.0
- Automatically react to module post in developer's channel if possible
2022-08-03 14:41:19 +00:00
hikariatama dfa46a0cc2 1.3.0
- Replace `print` with `logging.info` in main script to make url visible in logs
2022-08-03 13:52:18 +00:00
hikariatama 65e05e578e Switch version 1.2.13 -> 1.3.0 2022-08-03 13:35:33 +00:00
hikariatama 62a4cc5541 1.2.13
- Add support for :obj:`aiogram.types.Message` in `utils.get_chat_id`
- Add human-readable error message when trying to unload core module
2022-08-03 13:31:32 +00:00
hikariatama 0840efa969 1.2.13
- Add `@loader.command`, `@loader.watcher`, `@loader.inline_handler`, `@loader.callback_handler`
- Add support for multiple watchers
- Add support for command translate directly in decorator (`@loader.command(ru_doc="Привет")`)
2022-08-03 13:12:46 +00:00
hikariatama 51fbb0968c 1.2.13
- Add watcher tags: `no_commands`, `only_commands`, `out`, `in`, `only_messages`, `editable`, `no_media`, `only_media`, `only_photos`, `only_videos`, `only_audios`, `only_docs`, `only_stickers`, `only_inline`, `only_channels`, `only_groups`, `only_pm`. See docs for detailed info
- Add `utils.mime_type` to get mime_type of file in message
2022-08-03 12:05:17 +00:00
hikariatama f7eb19b3f0 1.2.13
- Add `@loader.tag("only_commands")` for watchers. Captures only userbot commands
- Add `@loader.tag("editable")` for watchers. Captures only messages, which can be edited
- Replace token obtainment mechanism with callback instead of inline
2022-08-03 10:47:48 +00:00
hikariatama eb33b70939 1.2.13
- Add support for `# requires` metatag in libraries
- Add support for `# scope: hikka_min` metatag in libraries
- Send stats of libraries, if enabled in `.settings`
- Replace library existence check from source url to classname
- Add `self.inline` to libraries
2022-08-02 23:17:47 +00:00
hikariatama bef9968a74 1.2.13
- Remove stupid db lock in `.e`
- Allow `.security` and `.inlinesec` only to owner by default
2022-08-02 22:29:33 +00:00
hikariatama cc09c8bdde 1.2.13
- Add `@loader.tag("out")` for watchers. Captures only outgoing events
- Add `@loader.tag("in")` for watchers. Captures only incoming events
- Add `@loader.tag("only_messages")` for watchers. Captures only messages (not service events)
- Attempt to fix cached entities mixing up
- Do not update modules in db when secure boot is active
- Refactor members getterr
- Add uptime to `.info`
- Refactor `.help`, add version to single mod help message
- Fix TypeError in `.e` when returning tl class instead of object
2022-08-02 22:24:21 +00:00
hikariatama a460f94a8f 1.2.13
- Patch stats so they correctly recognize links
- Fix bug when `...` is being replaced with `..` (unnecessary prefix escape)
- Add `@loader.tag`
- Add `@loader.tag("no_commands")` for watchers. Ignores commands
- Do not cut off prefix in `message.message`, `message.text` and `message.raw_text`
- Partially rework events processing and dispatching
2022-08-02 16:34:59 +00:00
hikariatama 5a5a5c55b5 Revert "1.2.13"
This reverts commit d00f6960db.
2022-08-02 16:21:37 +00:00
hikariatama d00f6960db 1.2.13
- Patch stats so they correctly recognize links
- Fix bug when `...` is being replaced with `..` (unnecessary prefix escape)
- Add `@loader.tag`
- Add `@loader.tag("no_commands")` for watchers. Ignores commands
- Do not cut off prefix in `message.message`, `message.text` and `message.raw_text`
- Partially rework events processing and dispatching
2022-08-02 16:20:38 +00:00
hikariatama 0cd4d619c3 Fix inner entities in HikkaInfo for default config 2022-07-27 18:33:52 +00:00
hikariatama e70086f67b Fix `{upd}` tag in HikkaInfo (do not wrap it into entities) 2022-07-27 18:31:47 +00:00
Dan Gazizullin a55942c879
Merge pull request #50 from hikariatama/v1.2.12
V1.2.12
2022-07-27 21:20:09 +03:00
hikariatama 6ebfa3e0d7 Fix empty reply markup patcher 2022-07-27 17:54:55 +00:00
hikariatama 56e0430f70 Add additional check for declined `request_join` 2022-07-27 17:05:59 +00:00
hikariatama 1413def49e 1.2.12
- Automatically patch reply markup in inline form in the way, that edit stays available anyway
- Do not unload inline form automatically, keep it for 10 minutes instead
- Use `telethon.utils.resolve_inline_message_id` to remove inline unit
- Add `self.request_join`
- Allow developers to declare `client_ready` without arguments
2022-07-27 16:54:58 +00:00
Dan Gazizullin 8160c27dd9
Merge pull request #49 from hikariatama/v1.2.12
Patch fixing userbot for users with multiaccount
2022-07-20 01:08:29 +03:00
hikariatama b4c41deabe Patch fixing userbot for users with multiaccount 2022-07-19 22:04:01 +00:00
hikariatama f46b81ddce Add `await` to folder adder in Updater 2022-07-19 20:37:26 +00:00
Dan Gazizullin 8720f638d3
Merge pull request #47 from hikariatama/v1.2.11
V1.2.11
2022-07-19 23:34:20 +03:00
hikariatama e477a07147 Black formatting after sourcery fixes 2022-07-19 20:32:22 +00:00
Dan Gazizullin 49aff045a1
Merge pull request #48 from hikariatama/sourcery/v1.2.11
V1.2.11 (Sourcery refactored)
2022-07-19 23:31:51 +03:00