Commit Graph

465 Commits (96352f2aef5aff0ae1be374d7dcf0f17e6c8c47e)

Author SHA1 Message Date
Who? 9ceadbfbf5
Update test.py 2024-11-19 20:15:47 +07:00
Rilliat 7f16201393
Update settings.py 2024-11-19 09:07:39 +03:00
Rilliat 97f9cdc284
Update settings.py 2024-11-19 08:58:40 +03:00
Who? a8967c88ba
bug fix... 2024-11-19 08:27:27 +07:00
Rilliat 0eb90d2fa3
Merge branch 'coddrago:master' into master 2024-11-18 21:07:50 +03:00
Rilliat dc5bc22952 Set actual prefix instead of . in installation command 2024-11-18 21:06:38 +03:00
Who? 117b7daaad
bug fix 2024-11-18 20:39:04 +07:00
Rilliat a7b049c06b Merge remote-tracking branch 'origin/master' 2024-11-17 21:31:39 +03:00
Rilliat 3743013d4b Add changelog command that takes changelog from the CHANGELOG.md file (last major update) 2024-11-17 21:16:47 +03:00
Who? 5fabc4c566
bug fix 2024-11-17 21:56:03 +07:00
Who? 330afc38db
Added working heta! 2024-11-17 18:52:02 +07:00
Ndpropavel 5b198d901b
Update presets.py 2024-11-16 20:53:11 +03:00
Rilliat 75f30e37c6 Update presets.py 2024-11-16 20:11:01 +03:00
Rilliat 478aa07295 Update presets.py 2024-11-16 20:03:41 +03:00
Rilliat 1b9f7b1ff5 Update presets.py 2024-11-16 19:42:44 +03:00
Rilliat df548215a3 Update presets.py 2024-11-16 19:36:23 +03:00
Who? 38f4d0d0ad
Update inline_stuff.py 2024-11-16 19:08:40 +07:00
Who? 7950ae7080
Update presets.py 2024-11-16 18:39:20 +07:00
Who? 881909faf4
Update presets.py 2024-11-16 18:21:26 +07:00
Who? e9a5223b1e
Update settings.py 2024-11-16 18:08:13 +07:00
Who? b11f5b11b4
Update hikka_info.py 2024-11-16 18:06:59 +07:00
Who? b1bba652cc
new banner 2024-11-16 18:03:19 +07:00
Who? db8e0db6ba
Update help.py 2024-11-16 17:49:31 +07:00
Who? 3728cb72de
Update hikka_info.py 2024-11-13 16:13:23 +07:00
Who? 00529974fe
nevermind.. 2024-11-11 22:38:50 +07:00
Who? 12710eae5c
fix "topic closed" in .installation 2024-11-11 22:37:25 +07:00
C0dwiz 944a8d6b73 upd telethon 2024-11-10 17:57:56 +03:00
Who? 09a9e0b9e0
fix not animated "💎" in .info 2024-11-08 00:53:11 +07:00
Who? 65fff221f0
AWS, oracle and Serv00 in .info 2024-11-07 21:31:21 +07:00
Who? 042627d8a0
Update settings.py 2024-11-03 13:49:15 +07:00
Who? d4c5995740
Update settings.py 2024-11-03 13:12:47 +07:00
Who? 42697479ee
Update settings.py 2024-11-03 13:12:01 +07:00
Who? 8fe574b814
Update settings.py 2024-11-03 13:11:04 +07:00
Who? b4d893d8f4
Update settings.py 2024-11-03 13:03:48 +07:00
Who? d0575b0c05
Fix upgraded eval.py 2024-11-01 16:25:58 +07:00
Who? af185b133c
Delete hikka/modules/hikarichat.py 2024-10-21 00:27:06 +07:00
Who? a42462ec44
Added some modules from /presets 2024-10-08 21:55:21 +07:00
Who? 48fb36468e
Update update_notifier.py 2024-10-07 00:16:16 +07:00
C0dwiz 476c4f36e1 v1.6.6
- formatting ruff\n\n- add webapp support in InlineKeyboardButton\n\n- add random version name\n\n- fix UnicodeDecodeError in windows\n\n- add a new language Ukrainian
2024-10-06 13:48:03 +03:00
Who? 40c0cbe577
Update settings.py 2024-10-05 22:10:02 +07:00
Who? 3d71f58794
Update settings.py 2024-10-05 22:01:17 +07:00
Who? af8599fc43
Update settings.py 2024-10-05 21:59:44 +07:00
Who? ac649c99a3
Update settings.py 2024-10-05 21:59:03 +07:00
Who? be2a2937f7
2024-10-05 21:53:19 +07:00
Who? 42de25ed7a
New banner 2024-10-04 21:03:51 +07:00
Who? d9a89d107d
Update test.py 2024-09-29 06:04:23 +07:00
Who? 8a533d6360
Update test.py 2024-09-29 05:47:57 +07:00
Who? 93f7b9d805
Update test.py 2024-09-29 05:46:22 +07:00
Who? cb97e6a02e
Update test.py 2024-09-29 05:44:33 +07:00
Who? 5ef92ecdbc
Update test.py 2024-09-29 05:42:19 +07:00
Who? 3ce9c2a72b
Update test.py 2024-09-29 00:50:45 +07:00
Who? 797b58eeda
Update test.py 2024-09-19 17:50:33 +07:00
Who? 39f8d58130
Update updater.py 2024-09-19 15:22:10 +07:00
Who? 54cb515696
Update loader.py 2024-09-19 14:49:14 +07:00
Who? 2da2b93d20
Update loader.py 2024-09-14 10:52:29 +07:00
Who? 2449f2e4e9
Update unit_heta.py 2024-09-14 00:11:50 +07:00
Who? fe39763510
Update loader.py 2024-09-14 00:02:43 +07:00
Who? 3d053d25bf
Update loader.py 2024-09-13 23:58:02 +07:00
Who? 8caa585a37
Update loader.py 2024-09-13 23:55:58 +07:00
Who? bbb4f33230
Update loader.py 2024-09-13 23:53:38 +07:00
Who? 94f58adfac
dont update pls 2024-09-13 23:50:20 +07:00
Who? 74d0dcf6c6
Added upgraded eval by sqlmerr 2024-09-13 22:37:10 +07:00
Who? 781c0f8b96
Update hikka_info.py 2024-09-13 12:23:47 +07:00
Who? 55cfbd690f
Update help.py 2024-09-13 12:23:23 +07:00
Who? 98a1716518
some DOLBOEB 2024-09-12 16:01:41 +07:00
Who? 9b8055dc08
Delete hikka/modules/test.py 2024-09-12 16:01:05 +07:00
Who? 81138e6796
Delete hikka/modules/help.py 2024-09-12 16:00:20 +07:00
Who? 17eb80e6af
added discription in hikkabackup 2024-09-11 23:11:10 +07:00
Who? 58b4c11d01
Update hikka_backup.py 2024-09-11 23:06:47 +07:00
Who? f153ef0b9d
Add files via upload 2024-09-10 20:44:53 +07:00
Who? 4ac1d2caa6
Delete hikka directory 2024-09-10 20:42:59 +07:00
hikariatama 1e7de51618 Fix await issue 2023-06-09 09:14:34 +00:00
hikariatama f27e5fbdf5 Cosmetic changes 2023-05-28 10:31:30 +00:00
hikariatama 81aa45127f Cosmetic changes 2023-05-24 08:47:05 +00:00
hikariatama 03a45535e5 Localization fixes 2023-05-23 05:58:39 +00:00
hikariatama e61b171e9f 1.6.3
- Add external debugging feature (off by default)
2023-05-23 05:51:08 +00:00
hikariatama 429ee48118 1.6.3
- Cosmetical changes
2023-05-21 17:35:46 +00:00
hikariatama b8c59fbc92 1.6.3
- Add custom security groups
- Add automatic NoNick for tsec methods
2023-05-15 13:54:25 +00:00
hikariatama 21c0057bf0 1.6.3
- Add argument `item_type` to `db.pointer` to provide interface for NamedTuple objects
- Add correct exception propagation to inline units
- Add `-fs` arg to `.lm` command
- Add IDM `flush_loader_cache`
- Add ability to cancel QR login using keyboard interrupt
- Fix form invoke error message
- Fix `Backuper`
- Fix backward compatiblity with security groups `SUDO` (0x2) and `SUPPORT` (0x4)
- Fix quickstart language buttons translations
- Fix language buttons disabling on restart
- Migrate inline heta search to userbot instead of centralized service
2023-04-26 18:21:22 +00:00
hikariatama 06f5290383 Minor fixes 2023-04-03 07:32:49 +00:00
hikariatama 206f70d1a8 Patch with minor problems fixes 2023-03-29 18:18:16 +00:00
hikariatama 77cbb013f8 Deepsource fixes 2023-03-23 21:33:50 +00:00
hikariatama fc38bb9671 Fixes 2023-03-20 13:49:06 +00:00
hikariatama 8bc4d57b6b 1.6.2
- Add alternative translation mechanism using YAML
2023-03-19 22:21:20 +00:00
hikariatama f3586ccb07 Fix stuff 2023-03-19 14:52:17 +00:00
hikariatama 2dfeb5cf43 Fix werkzeug debugger pin 2023-03-19 14:15:31 +00:00
hikariatama 00e4861e15 Fix help for single mod 2023-03-19 14:10:51 +00:00
hikariatama 6fc4c58a3e 1.6.2
- Remove default presets since they are the security risk
- Update and extend Tatar translation pack
- Restrict setting `s` as command prefix, since it will break command `setprefix`
- Transfer all previously non-essential modules to core ones
2023-03-19 12:44:58 +00:00
hikariatama 10934072bd 1.6.2
- New watcher tags: `no_pm`, `no_channels`, `no_groups`, `no_inline`, `no_stickers`, `no_docs`, `no_audios`, `no_videos`, `no_photos`, `no_forwards`, `no_reply`, `no_mention`, `mention`, `only_reply`, `only_forwards`
2023-03-16 20:30:31 +00:00
hikariatama 32d4e101f4 Correct maximum caption size in heta 2023-03-13 08:23:14 +00:00
hikariatama 1b4e1365ad Fix APILimiter for stacked requests 2023-03-13 08:19:16 +00:00
hikariatama 491b8f3fa0 1.6.2
- Whitelist requests in APILimiter to ignore internals
- New core modules: `UnitHeta`, `Translator`
2023-03-13 08:13:03 +00:00
hikariatama 16fcecd0bd 1.6.2
- Completely remove security groups `sudo` and `support`
2023-03-06 11:25:13 +00:00
hikariatama cd9a52724a 1.6.2
- Update Termux installation design
- Whitelist internal requests in APILimiter
- Start web when using `.weburl` and `--no-web` is used
- Add inline commands targeted security rules control
2023-03-05 16:13:45 +00:00
hikariatama 7d2c833635 Whitelist GetChannelDifferenceRequest from api protection 2023-03-04 12:00:58 +00:00
hikariatama 70d57b7cdf correct emojis in api_protection 2023-03-04 11:35:03 +00:00
hikariatama 7252f3ba2e Add some proper error handling 2023-03-04 11:30:50 +00:00
hikariatama e917222ff6 1.6.2
- Add QR login using ASCII for noweb
- Fix `.tsecrm`
2023-03-02 13:03:34 +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 5545d86c07 Formatting 2023-02-04 23:12:18 +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 fd918af4f4 - Root automatic reactions out
- Add randomized delays (1-3 seconds) between heavy userbot actions
- Add randomized delays (<1 second) to each API request if .api_fw_protection is enabled
- Update README with scary disclaimer
- Update web finisher banner with delay warning
2023-01-03 21:03:40 +00:00
hikariatama cbc00985c8 Deepsource fixes 2023-01-01 22:39:42 +00:00
hikariatama 028d678f5c Patch regarding lavHost 2023-01-01 20:54:31 +00:00
hikariatama c3c8eefe38 1.6.0 2022-12-26 13:24:30 +00:00
hikariatama ae6a3627b9 1.6.0 2022-11-24 11:10:25 +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 5ee7eaf755 1.6.0
- Minor fixes
2022-11-09 21:21:26 +00:00
hikariatama 20edeff8aa 1.6.0
- More fixes related to topics
- Fix Kazakh validators
2022-11-09 18:35:09 +00:00
hikariatama e6503e95a6 1.6.0
- Minor translation fixes
- Fix `utils.get_topic`
- Add local and proxied url to command `.debugpin`
- Rename command `.debugpin` -> `.debugger`
2022-11-08 22:35:02 +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 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 66e5b6c63d 1.6.0
Styling
2022-11-05 17:19:31 +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 89d9940bb1 Completely drop Okteto support 2022-10-23 14:24:56 +00:00
hikariatama e422522f3d Fix translation flaws 2022-10-23 12:19:00 +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 792840aa20 Deepsource fixes 2022-10-17 16:09:00 +00:00
hikariatama 91f95e412b Deepsource fixes 2022-10-17 15:50:52 +00:00
hikariatama c018c4641b Patch for rtl languages 2022-10-17 13:48:33 +00:00
hikariatama fd9268e06d Add support for rtl platform emojis
Fix translations
Add language->countrycode translation for Saudi Arabia
2022-10-17 13:23:24 +00:00
hikariatama cc62daf498 Update translations 2022-10-17 07:06:40 +00:00
hikariatama b296385106 Replace command docs 2022-10-16 11:57:09 +00:00
hikariatama b074b3f634 Replace japanese country code with japanese language code Fix multilevel validators for cases, where the desired translation is not available 2022-10-16 11:53:06 +00:00
hikariatama 5dd29bca0c Add Japanese, Korean, Spanish and Arabic translate packs 2022-10-16 10:13:19 +00:00
hikariatama fb330cc08b Translate validators, inline, update existing translations, add new 2022-10-15 21:22:14 +00:00
hikariatama 6e6f79aa67 Update translations 2022-10-15 17:08:48 +00:00
hikariatama b1d4ddbeeb Update translations 2022-10-15 16:39:01 +00:00
hikariatama 79a337b809 Fix dynamic reload for modules without @loader.tds 2022-10-15 16:06:03 +00:00
hikariatama 50847c075e Force quickstart message 2022-10-15 15:58:12 +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 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 9d913b86ee Deepsource + sourcery fixes 2022-09-26 12:31:37 +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 039acb33db Add new animated banner 2022-09-20 06:33:49 +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 30876ab5cf Deepsource fixes 2022-09-03 21:06:11 +00:00
hikariatama c3553deed8 Part of 1.4.1 update 2022-09-03 20:32:56 +00:00
hikariatama e035a9d11d Fix `Ignore` in update notifier 2022-08-27 17:11:26 +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 9373478391 Add Railway support 2022-08-23 19:40:25 +00:00