Commit Graph

579 Commits (6e6f79aa673a7b1b6a4e4db71449fe09687d462f)

Author SHA1 Message Date
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
Sourcery AI c7bea2a5e0 'Refactored by Sourcery' 2022-07-19 20:29:32 +00:00
hikariatama 9d88819cb5 Deepsource fixes 2022-07-19 20:22:43 +00:00
hikariatama 8b632fdbd2 Part of v1.2.11 update 2022-07-19 16:37:12 +00:00
hikariatama 1f6c44e903 Part of v1.2.11 update
Check changelogs for more info
2022-07-16 21:56:43 +00:00
hikariatama 08443aa775 Part of v1.2.11 update
Check changelogs for more info
2022-07-16 21:55:45 +00:00
hikariatama 6637977f0c Part of v1.2.11 update
- Remove Database and TelegramClient from local variables in stack
- Remove redundant parameters in `send_ready_one` and similar
2022-07-16 10:24:15 +00:00
hikariatama 63c6d354ce Part of v1.2.11 update
See changelogs for more info
2022-07-16 09:59:19 +00:00
hikariatama 9ddfef305f Part of v1.2.11 update
See changelogs for more info
2022-07-15 22:04:09 +00:00
hikariatama 308eb29b4e Update changelog 2022-07-14 21:38:10 +00:00
hikariatama 7fdcca8d8a Add `get_prefix` to library instance 2022-07-14 21:35:35 +00:00
hikariatama e995391bf0 Add references replacement with garbage collector
Old method doesn't work at all btw
2022-07-14 20:28:29 +00:00
hikariatama 071b1c1d01 Fix typo 2022-07-14 20:01:58 +00:00
hikariatama 8e3647b45b 1.2.11
- Add support for lib attribute `version` (must be defined BEFORE `init` method)
- Add `self.lookup` to libs
- Add `self.allmodules` to libs
- Add `self.lib_get` to libs
- Add `self.lib_set` to libs
- Add support for hook `on_lib_update` (invoked when library is being updated by new version)
2022-07-14 19:40:38 +00:00
Dan Gazizullin 4193c84773
Merge pull request #45 from hikariatama/v1.2.10
v1.2.10
2022-07-13 23:32:39 +03:00
Dan Gazizullin 866f0a94e5
Merge pull request #46 from hikariatama/sourcery/v1.2.10
v1.2.10 (Sourcery refactored)
2022-07-13 23:31:25 +03:00
Sourcery AI 90163f8cfc 'Refactored by Sourcery' 2022-07-13 20:29:27 +00:00
hikariatama 5dd942992e Fix multiple spaces in `.help -f` for modules without commands 2022-07-13 20:26:10 +00:00
hikariatama 3b18c068fb Show actual module name in <core>, <file> and <string> origins 2022-07-13 20:16:35 +00:00
hikariatama 633845f8d6 Add key-specific config and dictionary migration 2022-07-13 19:54:45 +00:00
hikariatama 5fe75d3af7 Rename duplicate variable which caused error on migration 2022-07-13 19:43:41 +00:00
hikariatama 7994b82566 Forcefully override new db values with legacy ones 2022-07-13 18:51:03 +00:00
hikariatama 1af82d85b2 1.2.10
- Completely drop fast_uploader support
- Add :method:`utils.import_lib`
- Add protection for :obj:`CheckChatInviteRequest` in forbid_joins
- Add ability to search modules by classname in :method:`self.lookup`
- Add anonymous stats of modules loading (YOU CAN DISABLE THEM IN `.settings`)
- Add telethon objects formatting in `.e`
- Add :obj:`loader.SelfSuspend` to disable module commands and watcher loading, e.g. if library is unavailable
- Add migration native modules db storage from `strings["name"]` to classname. ⚠️ Might break some stuff in the beginning in rare cases
- Fix heroku-specific config error
2022-07-13 18:39:19 +00:00
hikariatama 66426025e0 Patch with minor fixes
- Refactorment
- Deepsource suggestions
- License update
2022-07-07 20:24:20 +00:00
hikariatama 5c4fba228a Patch for Updater 2022-07-06 19:25:50 +00:00
hikariatama 32bcd634a4 Fix typo, which caused db problems on Heroku 2022-07-03 18:41:14 +00:00
hikariatama 402ed878c6 1.2.9
Small fixing, which allows developer to specify audio metadata in form and `_edit_unit`
2022-07-03 14:41:58 +00:00
hikariatama f40a4eba09 1.2.8
- Add automatic webpage bot unblock in heroku waker
- Add secure boot feature
- Update native heroku postgre database saving method
- Add easter egg to `.ping`
- Add platform-specific errors while installing requirements
- Change postgresql column `id` datatype from int32 to int64 + legacy migration
- Change proxypass tunnel behavior - now it only opens on setup and via command `.weburl`
- Lavhost-specific web url
- Meaningful errors in web
- ⚠️ Drop `fast_uploader` support. It will be completely removed in next major update
- Deepsource fixes
- Multiple languages with priority
2022-07-02 22:04:27 +00:00
hikariatama 12ae1ec44d Patch
- Temporarily disable `fast_download` and `fast_upload` (no need to remove them from code, they are available as-is, but use legacy transfer
- Fix gallery loop
2022-06-19 19:19:38 +00:00
hikariatama 91db334a89 1.2.7
- Add automatic proxy pass
- Fix --no-web argument parsing
- Fix localization error in updater
- Print out only INFO statements to stdout
- Add rotating file handler (logfile with max 10MB size)
- Show web endpoint on startup if available
- Fix gallery `inline_message_id` error
- Add support for `custom_buttons` in `inline.list`
- Add support for `custom_buttons` in `inline.gallery`
- Smart fast_uploader (Do not use hard download on files smaller than 1 MB)
- Attempt to parse `unit_id` from passed `InlineCall` object in `inline._delete_unit_message`
- Reformatting
- Change typehints
- Show list-like values in formatted way in config
- Properly escape html in config
- Split config to pages and categories (core \ non-core)
- Properly edit dictionary config (iter)
- Properly remove items from series options through built-in configurator
- Remove warning from web by replacing coroutine generation with `functools.partial`
2022-06-17 22:22:30 +00:00
hikariatama db09fa3aca Fix protection 2022-06-12 19:24:12 +00:00