Commit Graph

77 Commits (2447ab4bf92fb52c6b70ff5b2f20519649ba279a)

Author SHA1 Message Date
hikariatama 2447ab4bf9 1.6.2
- Add ability to log in using QR code and --no-web
- Disable web interface for Termux and fallback to CLI login instead
- Add fancy ANSI banner
2023-03-02 14:06:23 +00:00
hikariatama 9a0e4b1b38 1.6.2
- Fix security issue with edited channel messages
- Add interface to interact with raw pointer data (`.data` attribute)
- Translation fixes
- Randomize `device_model` to bypass fraud detection
- Pass proper device information to Telegram
- Update `hikka-tl` in accordance to upstream telethon v1
- Update `hikka-pyro` in accordance to upstream pyrogram
- Rename packages so that they don't conflict with originals
- Partially migrate to `pathlib`
- Code cleanup
2023-03-01 15:36:02 +00:00
hikariatama fac8b47db6 1.6.1
Add French translation pack
2023-02-04 22:45:28 +00:00
hikariatama eb0786e690 1.6.1
- Remove miyahost from official hosts
- Fix memory leak when using 1.6.0 inside Docker
- Fix userbot dying after restart on Docker
- Root out stats mechanism
2023-02-01 16:36:48 +00:00
hikariatama 35ec00f840 1.6.0
- Fresh Christmas web design
- EULA warning for lavHost and MiyaHost
- Support for Python 3.10
2023-01-01 20:33:36 +00:00
hikariatama faec12364b 1.6.0
- Add local storage fallback in case remote end is not available
- Add `self.invoke` method for modules
2022-11-24 10:29:41 +00:00
hikariatama 27aff587f6 1.6.0
- Add credits to developers and translators
- Add support for multiple usernames
- Add topic guesser in `send_message`, `send_file` in order for old modules to work properly
2022-11-19 16:40:07 +00:00
hikariatama 8e59bc056f 1.6.0
- Fix `EntityLike` validator
- Fix stringifying error in logging
- Fix command escaping when using layout translated prefix
- New `utils.answer_file` method
- New `utils.get_cpu_usage` method
- New `utils.get_ram_usage` method
- New QR login flow
- New license banners
- New error-specific messages for RPCErrors, FloodWaitErrors, NetworkErrors
- Send `start` hook to `InfiniteLoop` instances with `autostart` flag only after `client_ready`
- Replace `__getattr__` in `Module` object with properties for commands and handlers
- Move from monkey-patching concept of filling modules' attributes to native one
- Partial Tatar translation pack
- Logging tweaks
- Add `caller` field to inline units
- Add ability to get module help by command alias
2022-11-19 07:52:53 +00:00
hikariatama c1c7cd637a 1.6.0
- Fix overall userbot runtime
- Add Kazakh translation pack
- Update emojis
- Minor translation fixes
2022-11-08 21:23:18 +00:00
hikariatama 37688244e8 Update changelog 2022-11-08 01:14:21 +00:00
hikariatama 42ea601a59 1.6.0
- New `utils.atexit` method
- New restart process, which correctly kills all child processes and threads
- Update to Hikka-TL==1.2.12 and Hikka-Pyro==2.0.60
2022-11-08 01:11:02 +00:00
hikariatama 97a219b5fc 1.6.0 2022-11-05 15:38:59 +00:00
hikariatama 7f49424edb Update translation packs 2022-10-24 13:12:13 +00:00
hikariatama 15c2e3465f 1.6.0
🌘🌘🌘 1.6.0 beta released

- Bring support for Dragon Userbot modules
- Make `db` attribute of `Modules` public
- Mess up with some translations
- Fix `.helphide` command
- Fix visual bug with phone input field in web
- Drop Okteto support
- Show Hikka platform and version in Telegram sessions list
- New type `DragonModule`
- New argument of `get_prefix` - `userbot`. Pass in `"dragon"` to get its prefix
- New attribute of `Modules` - `dragon_modules`
- New attribute of `CustomTelegramClient` - `pyro_proxy`. Use pyrogram methods natively
- New appearence of `help` command
- New module loading animation
- New README.md with installation steps and new web recording
2022-10-23 11:38:06 +00:00
hikariatama 5dd29bca0c Add Japanese, Korean, Spanish and Arabic translate packs 2022-10-16 10:13:19 +00:00
hikariatama bdf4cd1f1e 1.5.3
- Add Uzbek, Turkish, German and Hindi translation packs
- Fix module and command docs not being translated on-the-flight
2022-10-15 15:56:28 +00:00
hikariatama f475d6c05a 1.5.2
- Change the behavior of `@loader.raw_handler` decorator to accept starred arguments instead of list-like value
2022-10-12 16:59:18 +00:00
hikariatama 1911fdba67 1.5.1
- Fix `--no-web` arg
- Fix `tglog_level` config option of module `Tester`
- Fix duplicated monkey on login page
- Fix shit modules with uppercase commands
- Add physical `Enter` button to login page on mobile devices
- Add `--proxy-pass` arg
- Add `utils.invite_inline_bot` method
- Add `utils.iter_attrs` method
- Add `@loader.raw_handler` decorator
- Add `invite_bot` parameter to `utils.asset_channel`
- Add support for `String` validator's `min_len` and `max_len` parameters
2022-10-10 13:45:33 +00:00
hikariatama 44da7780f6 1.5.1
- Fix duplicated monkey on login page
- Add physical `Enter` button to login page on mobile devices
2022-10-06 11:06:29 +00:00
hikariatama e90367c6ef 1.5.1
- Fix `--no-web` arg
- Fix `tglog_level` config option of module `Tester`
- Add `--proxy-pass` arg
- Add `utils.invite_inline_bot` method
- Add `invite_bot` method to `utils.asset_channel`
- Add support for `String` validator's `min_len` and `max_len` parameters
2022-10-06 10:48:25 +00:00
hikariatama 54c568a56b 1.5.0
- Remove junk collector from tl cacher to keep old records so devs can access them w\o making new requests
- Remove FTG License in fully changed files
- Add official GoormIDE support
2022-09-25 16:50:35 +00:00
hikariatama c1fdf9b0b4 1.5.0
- Add ability to create custom IDMs
- Add fields `flags` and `description` to `RegExp` validator
- Add fields `min_len` and `max_len` to `String` validator
- Add `Emoji` validator
- Add `EntityLike` validator
2022-09-23 11:13:59 +00:00
hikariatama 3f2cff2a0f 1.5.0
- Add full trace locals length limit
- Rework full trace locals to hashable converter
2022-09-22 11:04:10 +00:00
hikariatama c5e9b4ce5f 1.5.0
- Add new code input design
- Add new 2fa password input design
- Allow user to send code only once to prevent FloodWaits
2022-09-22 10:46:48 +00:00
hikariatama 3186fe154f 1.5.0
- Completely drop Heroku support due to legacy code, limits and removing of free tier
2022-09-20 16:55:12 +00:00
hikariatama 18a83a748d 1.5.0
- Add ability to set custom emojis in `.info` using command `.setinfo`. In order to use it, remove buttons using config
- Patch internal help module with bugfixes
2022-09-19 13:18:35 +00:00
hikariatama 066f7a46a2 1.5.0
- Fix `on_change` param processing in config
- Fix `hikka.types.CoreOverwriteError`
- Fix incorrect commit in info for users with multiple origins
- Fix error with module configs not being updated to values which were set by user
- Fix core unload and core overwrite errors not being raised correctly
- Fix config descriptions in `APIRatelimiter`
- Fix `CoreOverwriteError` handling
- Fix `TelegramID` validator to work with values between 2^32 and 2^64 - 1
- Fix web authorization messages being sent twice
- Fix duplicated animations in web
- Fix installation banner being shown after auth in web
- Fix form placeholder button being shown when not necessary
- Add `@loader.tag(thumb_url="")` decorator
- Add new inline help format
- Add internal method for debug calls (`.invoke`)
- Add Internal Debug Method (IDM) to inspect cache (`inspect_cache`)
- Add IDM `inspect_modules`
- Add IDM `clear_cache`, `clear_entity_cache`, `clear_fulluser_cache`, `clear_fullchannel_cache`, `clear_perms_cache`
- Add IDM `reload_core` to automatically reload core modules from disk
- Add `hikka.validators.MultiChoice`
- Add `utils.get_args_html` to get arguments of command with HTML
- Add switch to mute @BotFather only once in hikka inline
- Add ability to forbid certain tl methods using `.config APIRatelimiter`
- Add new web interface design
- Clean type-hint mess, document utils and other methods, which were undocumented
- Remove redundant non-working code from configurator
- Remove redundant useless params `--hosting`, `--no-nickname`, `--token`, `--web-only`, `--docker-deps-internal`
- Migrate to lazy string interpolation in logging
- Reformat the whole code to match the desired code style
- Rename `APIRatelimiter` -> `APILimiter`
- Enable `joinChannel` and `importChatInvite` calls-by-external-modules blockage for all users by default
- Change inline query placeholder to `user@hikka:~$` + legacy migration
2022-09-18 15:47:09 +00:00
hikariatama 6476c4adda 1.4.2
- Fix authorization error
2022-09-05 06:17:05 +00:00
hikariatama c3553deed8 Part of 1.4.1 update 2022-09-03 20:32:56 +00:00
hikariatama e90b91ba9d 1.4.1
- Create new type :obj:`hikka.tl_cache.CustomTelegramClient` to avoid monkeypatching
- Add `ttl` param for :method:`hikka.utils.asset_channel`
- Add support for custom branches (e.g. for beta testers and users, who rolled back)
- Fix automatic modules reactions
- Fix :method:`hikka.inline.utils.Utils._find_caller_sec_map`
- Refactor validators to be classes, not functions
- Refactor typehints
2022-08-27 16:55:15 +00:00
hikariatama dc2e86e782 1.4.0
- Add `Presets` core module
- Add handler for `/start` command in inlinebot with userbot info
- Remove custom :obj:`BotInlineMessage` hook for :method:`answer`
2022-08-22 13:28:11 +00:00
hikariatama 89040b6e2f 1.4.0
- Fix grep for messages bigger than 4096 UTF-8 characters
- Rename `func` tag to `filter` due to internal python conflict with dynamically generated methods
- Partially rework security unit
- Internal refactoring and typehints
2022-08-21 21:48:19 +00:00
hikariatama ab8130ed60 1.4.0
- Add platform-specific Hikka emojis to premium users
- Add codepaces to `utils.get_named_platform`
2022-08-21 18:36:33 +00:00
hikariatama 8534c0cafd 1.4.0
- Add `-f` param to `.restart` and `.update`
2022-08-21 16:57:09 +00:00
hikariatama 1ba0d34c7e 1.4.0
- Fix custom security rules cleaner
- Fix: use old lib if its version is higher than new one
2022-08-21 16:53:22 +00:00
hikariatama 33c3d3b72b Fix `.eval` 2022-08-21 15:05:46 +00:00
hikariatama aeddd7a870 1.4.0
- Publish hikka telethon fork and migrate to it in requirements, thereby fixing the deployment error on Heroku
- Add custom emojis filter to `utils.remove_html`
- Fix `client.get_perms_cached`
- Fix translation flaw in `HikkaSecurity`
- Fix `.uninstall_hikka` being accessible by sudo
- Fix `utils.find_caller` for :method:`hikka.inline.utils.Utils._find_caller_sec_map`
- Add more animated emojis to modules
- Add targeted security for users and chats (`.tsec`)
- Add support for `tg_level` in `.config Tester`
2022-08-21 14:55:51 +00:00
hikariatama 15dbdf7ae2 1.3.3 - Fix severe typo, which broke `client.get_fulluser` 2022-08-16 14:22:40 +00:00
hikariatama bdad473eb8 1.3.2
- Add `on_change` param to `loader.ConfigValue`
- Rework commands\inline handlers\callback handlers\watchers registration and unload process
- Rework tags processing
- Add junk collector aka reloader to `Modules`
2022-08-15 16:43:34 +00:00
hikariatama a71b1ca4c9 1.3.1
- Add toggle for custom emojis
2022-08-14 20:35:45 +00:00
hikariatama 84942232da 1.3.1
- Add text validation to info (automatically remove broken tags)
- Add `utils.validate_html` to remove broken tags from text
- Remake all core modules to decorators
- Force custom hikka telethon installation with 144 layer support
- Add animated emojis to core modules strings
2022-08-14 18:49:20 +00:00
hikariatama 7f53220524 Add `client.get_fulluser` with cache 2022-08-09 22:05:35 +00:00
hikariatama a57f15307b 1.3.1
- Add fullchannel caching (`client.get_fullchannel`)
2022-08-09 21:28:02 +00:00
hikariatama edfe1fdd15 1.3.1
check changelog for more info
2022-08-09 20:38:36 +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 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 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