Commit Graph

940 Commits (8b7902a4d644bdb9b35dc1b37385420a8788ad84)

Author SHA1 Message Date
Hikari d064cfeaf3
Minor bug fixes
Move `skip_hook` check before re-assigning strings, add Nonetype check close
2022-04-17 11:14:39 +00:00
Hikari a3ea19dc58
Minor bug fixes 2022-04-17 10:58:14 +00:00
Hikari 2d525ab6b0
1.1.1: Finally drop Uniborg and Raphielgang compatibility layer, refactor code a bit, fix minor bugs
This layer was needed 2 yrs ago, when FTG was starting and there were no modules. Right now, there are much more modules for FTG\GeekTG\Hikka, rather than for Uniborg and Raphielgang, so I decided to drop this layer, bc it is very large amount of code and kinda useless right now
2022-04-17 08:52:43 +00:00
Hikari db79a8a18f
Compatibilit tweak 2022-04-17 07:06:11 +00:00
Hikari 5b7a869f26
Fix fantom message with exception when trying to raise MessageNotModified 2022-04-16 20:29:41 +00:00
Hikari fa1ff8527a
Remember inline_message_id of form in case it gets unloaded before the result is returned 2022-04-16 20:27:13 +00:00
Hikari 69c64072c3
1.1.0: First major update. A LOT OF STUFF. Really, a lot. Check out hikka channel for more info 2022-04-16 20:00:15 +00:00
Hikari 6b1d20d0f8
Add ability to disable automatic backups 2022-04-15 09:39:41 +00:00
Hikari 74ae9ecb57
Add automatic database backup (`HikkaBackup`) 2022-04-15 09:30:34 +00:00
Hikari 22c260492a
Add `.nonickchat` command to HikkaSettings
You can enable NoNick for certain chat in order to avoid userbot spam in not-needed chats
2022-04-15 08:01:58 +00:00
Hikari a930e85678
Allow user to control callback buttons (forms) security via `.security` command 2022-04-15 07:44:59 +00:00
Hikari c6b03249e8
Update `cache_time` in native query answers so they are not cached anymore 2022-04-14 17:56:50 +00:00
Hikari c98a9f610b
Automatically confirm update if it was initiated via the button in update notifier 2022-04-14 09:25:26 +00:00
Hikari df3c684a43
Refactor inline security, replace weird two-level generator with for-loop and generator, fix galleries 2022-04-14 09:09:05 +00:00
Hikari 1e307b98c2 Add automatic restart after installing dependencies \ reinstalling telethon 2022-04-13 18:55:34 +00:00
Hikari 4b730c40d2
Add telethon check in order to avoid errors due to classic telethon installation 2022-04-13 18:42:33 +00:00
Hikari 21d9133d30
1.0.29: Add `@loader.inline_everyone`
This can be used underneath inline handlers and callback handlers to control default permission rules. Don't forget to set up an inline security mask in `.inlinesec`, otherwise some modules could become unusable
2022-04-13 17:59:55 +00:00
Hikari 748f51351f 1.0.28: Add `silent` param to lists, forms and galleries; Add `photo` param to inline form
Add URL validator to `inline._generate_markup`, which will ignore buttons with invalid urls
2022-04-13 17:15:00 +00:00
Hikari f4761b91de
Add CakesTwix to allowed origins
There was no https://twix.nonfalse-networks.net.ua/modules, which have been forbading to install modules from this origin via buttons
2022-04-12 13:08:06 +00:00
Hikari e6336679d7
Add Raspberry Pi recognition to `utils.get_named_platform`. thx to @CakesTwix 2022-04-11 13:21:29 +00:00
Hikari eea3d2f3e5 1.0.27: New requirement - grapheme. New `utils.smart_split`, authored by t.me/bsolute. Minor improvements 2022-04-10 21:44:20 +00:00
Hikari fdef2634de
Fix weird bug with un-translated modules due to invalid `__module__` 2022-04-09 12:46:51 +00:00
Hikari aa34046f27
Fix loading status messages for forms, galleries and lists 2022-04-09 12:30:46 +00:00
Hikari f2ef452acd
Fix `.dlmod`, remove logspam from utils 2022-04-09 12:12:19 +00:00
Hikari 070366b341
1.0.26: Add `utils.smart_split` which splits the message in chunks and relocates entities so they fit. If `utils.answer` response is too large to send in one message, it will be split in chunks and sent using `inline.list` 2022-04-09 11:56:39 +00:00
Hikari dc16e406ff
Fix when answering inline query via native method 2022-04-09 08:04:51 +00:00
Hikari bf6297388e
Fix markup 2022-04-08 16:06:55 +00:00
Hikari d0b63e4798
Fix some typos 2022-04-08 13:52:01 +00:00
Hikari 24759e5005
Protect core modules and internal commands from being overwritten by weird external analogs 2022-04-08 13:47:12 +00:00
hikari.ftg 19da41bcbc Fix `.unloadmod`, allow to edit forms `disable_security` on `call.edit` 2022-04-08 12:43:26 +00:00
hikari.ftg c49b03bfea Update docstrings 2022-04-08 12:35:36 +00:00
hikari.ftg f76db91648 1.0.25: Add `disable_security` param to forms, galleries, lists and query galleries. Clean up code a lil bit 2022-04-08 12:26:42 +00:00
hikari.ftg bf4098339d Deepsource fixes 2022-04-07 18:01:20 +00:00
hikari.ftg 817eda537b Okteto fixes 2022-04-07 16:41:15 +00:00
hikari.ftg f19c40bbef `utils.dnd`, which silence the peer and archives it (especially good for bots, which are used to obtain tokens), automatically silence the @hikka_userbot, @botfather and others. Update typehints in utils 2022-04-07 16:29:59 +00:00
hikari.ftg 045fcf4323 Migrate from string formmating to f-strings in logging 2022-04-07 16:15:26 +00:00
hikari.ftg 4e87ebd3c2 1.0.24: Refactor security, fix security for groups, remake module storage system with legacy db migration 2022-04-07 15:50:13 +00:00
hikari.ftg 556a52b2fb Omit case when unloading module 2022-04-07 13:33:54 +00:00
hikari.ftg b71f51e8ea Automatically add `text` and `raw_text` attributes to an `Event` object to avoid weird logspam from dochub modules 2022-04-07 13:31:24 +00:00
hikari.ftg 3cf750a586 Attempt to install dependencies from error message if they are not specified in code 2022-04-07 13:27:33 +00:00
hikari.ftg 737dfd8343 Add modules' creators propriety gesture to HikkaDL (Automatic reaction when downloading via button) 2022-04-07 11:17:10 +00:00
hikari.ftg bd6f35878d 1.0.23: Add ability to disable HikkaDL natively, add support for non-inline mode for Updater 2022-04-07 10:54:16 +00:00
hikari.ftg 0139b7bd9c Automatically revoke HikkaAPI token if it expires \ becomes invalid 2022-04-07 09:14:27 +00:00
hikari.ftg db14892ce2 Add requirements 2022-04-06 19:09:20 +00:00
hikari.ftg 050ac0ea4f 1.0.22: Add HikkaDL module to use download buttons 2022-04-06 19:05:31 +00:00
hikari.ftg 8181ae56f4 UpdateNotifier translateability 2022-04-06 06:10:29 +00:00
hikari.ftg 29784d2e0d Delete last update notification when new one is upstrea 2022-04-06 06:03:19 +00:00
hikari.ftg 1cd3302c9c Cool updater (test) 2022-04-05 19:10:52 +00:00
hikari.ftg 25ae14de28 Fix `_bot_username` attribute error 2022-04-05 18:53:13 +00:00
hikari.ftg bf6298db45 Compat update 2022-04-05 18:46:52 +00:00
hikari.ftg c0a101bdc2 Some fixes 2022-04-05 18:07:23 +00:00
hikari.ftg 93e44db8e7 Minor bug fixes 2022-04-05 17:38:43 +00:00
hikari.ftg 179f12d9ca 1.0.21: A lot of stuff: web fixes, bug fixes, automatic seamless userbot restart when adding new account in web, replace emojies, add inline list feature, fix `types` name conflict and I don't remember other fixes, read code 2022-04-05 16:46:03 +00:00
hikari.ftg 708639d7f2 Fix UpdateNotifier 2022-04-03 17:34:59 +00:00
hikari.ftg 467c093a26 Upload UpdateNotifier 2022-04-03 17:30:17 +00:00
hikari.ftg 273c3d6561 Remove Okteto debugging 2022-04-03 17:14:40 +00:00
hikari.ftg 764b158e91 Add `.hikkainfo` cmd 2022-04-03 16:52:45 +00:00
hikari.ftg 60fe788d2e 1.0.20: Allow passing `reply_markup` field to inline result. Allow passing only dict or only one embeded list with dicts, if you don't need a lot of lines of buttons 2022-04-03 16:17:54 +00:00
hikari.ftg 759ff3ef16 1.0.19: Allow developers to return InlineQuery result via `dict` \ list of `dict`s. Move query gallery to a separate module 2022-04-03 15:46:32 +00:00
hikari.ftg d34a12d768 Fix 2022-04-03 11:03:02 +00:00
hikari.ftg 03f7c71557 Bug fixes and refactorment 2022-04-03 11:01:05 +00:00
hikari.ftg 15bc667860 Minor bug fixes 2022-04-03 10:45:08 +00:00
hikari.ftg 94a7bdc221 Hotfix 2022-04-02 20:33:46 +00:00
hikari.ftg 495ef51acd Replace misswritten license 2022-04-02 20:16:45 +00:00
hikari.ftg 17e9e362d4 1.0.18: Add `silent` and `archive` params to `utils.asset_channel`. Remake logging so it become native with `BotLogger`. Inject `BotLogger` analog directly 2022-04-02 20:14:24 +00:00
hikari.ftg 288ac55c85 Add possibility to change bot username via `.ch_hikka_bot` 2022-04-01 22:04:12 +00:00
hikari.ftg a0e9586506 1.0.17: Add ability to set up inline commands' security map (only `owner`, `sudo`, `support` and `everyone`, because other permissions are inaccessible when processing inline query). Add database serializeability check to avoid JSON-serialization problems if unserializable object is being stored in db. Minor bugfixes 2022-04-01 20:51:35 +00:00
hikari.ftg 4583c98c1f Hotfix for Okteto users 2022-04-01 20:15:37 +00:00
hikari.ftg becec46e97 Ignore events to avoid errors in logs 2022-04-01 19:19:43 +00:00
hikari.ftg 0075802a63 1.0.16: Full support of Okteto cloud deployment inculding persistent data storage (additional volume is created), automatic waker for container and other stuff 2022-04-01 19:15:47 +00:00
hikari.ftg 9fa316cd94 Fix data root in web 2022-04-01 18:24:33 +00:00
hikari.ftg 7433c124c7 Add Okteto debugging 2022-04-01 17:45:43 +00:00
hikari.ftg f22c811bfe Updates for Okteto 2022-04-01 17:09:00 +00:00
hikari.ftg d123e3275f Do not create `/data` folder manually, but specify it in okteto stack manifest 2022-04-01 13:19:55 +00:00
hikari.ftg c9e527fad7 Remove unnecessary `os.chdir`, which breakes userbot on Okteto 2022-04-01 13:00:16 +00:00
hikari.ftg c6e2075ec3 Add additional directory creation in loader 2022-04-01 12:58:23 +00:00
hikari.ftg fbc7d9e323 Okteto: Replace relative path to `data` dir to a abolute one 2022-04-01 12:54:56 +00:00
hikari.ftg 4222ea5840 When userbot is installed to Okteto, store persistent data in `data` folder 2022-04-01 12:49:56 +00:00
hikari.ftg 94974c8b5a Add client id to session file name to avoid conflicts when user tries to add two accounts with the same phone endings 2022-03-31 20:50:03 +00:00
hikari.ftg a5497fdf9d 1.0.15: Add more errors to `query` aka `query.e500()` 2022-03-31 20:44:56 +00:00
hikari.ftg 1fc0b26e66 1.0.14: Add gallery slideshow 2022-03-31 20:27:57 +00:00
hikari.ftg fca9f44e07 Localization features 2022-03-31 18:45:26 +00:00
hikari.ftg c40b8e016e 1.0.13: Include command prefix in inline `info`. Fix `--no-web`. Suggest to save modules to filesystem 2022-03-31 18:24:00 +00:00
hikari.ftg 6dfaaebf0d Fix `query_gallery` permissions 2022-03-31 13:03:14 +00:00
hikari.ftg 0d5ea045fd Actual 1.0.12 with changes 2022-03-31 11:33:21 +00:00
hikari.ftg 3d4be0b77b 1.0.12: Optimize forms, galleries and custom_map storage by ommiting keys with default values and dynamically generate them. Add feature to inherit command-caller permissions on form and gallery (crutchy). Minor improvements and bug fixes 2022-03-31 11:13:31 +00:00
hikari.ftg 319edae7a1 Rewrite contributors to remove deepsourcebot 2022-03-30 16:26:51 +00:00
hikari.ftg 2c15341cf5 Update README 2022-03-29 12:38:13 +00:00
hikari.ftg 0a2327c37e 1.0.11: Add `inline.query_gallery` to add ability to call inline gallery via inline query. Add `e404` attribute to `InlineQuery`, which will show, that no results were found 2022-03-29 11:14:20 +00:00
hikari.ftg 12d833d0dd Update README.md, minor fixes 2022-03-28 21:47:30 +00:00
hikari.ftg cf22d576f0 1.0.10: Add feature to send gifs in inline galleries (`gif` param). Make argument `caption` of inline gallery not mandatory 2022-03-28 18:26:33 +00:00
hikari.ftg d9670713df Add GeekTG backward compatibility layer 2022-03-28 15:50:22 +00:00
hikari.ftg 41883cda61 Fix InlineQuery override 2022-03-28 11:21:34 +00:00
hikari.ftg 3e2bd4494a Deepsource fixes 2022-03-28 11:06:47 +00:00
hikari.ftg 01a4d11432 Add gallery floodwait handler 2022-03-28 10:38:50 +00:00
hikari.ftg 2b55fde4e8 Add protection from update loop 2022-03-28 10:25:34 +00:00
hikari.ftg 5ea353d8c9 Automatically switch to the next photo without showing warning if fetch error occurred 2022-03-28 09:43:57 +00:00
hikari.ftg c8059cd604 1.0.9: Full inline structure rework. Split this madness into separate modules (`InlineUnit`s), which extend the main unit - `InlineManager`. Compatibility layer is not main priority. Some modules will break after updating to 1.0.9 2022-03-28 09:10:31 +00:00
hikari.ftg 54cb8f6b5d Automatically unload form if it doesn't contain `callback` or `input` buttons 2022-03-28 08:26:30 +00:00
hikari.ftg 5bc8359590 1.0.8: Code refactoring, minor bug fixes, rewrite security 2022-03-28 08:19:31 +00:00
hikari.ftg 66997edfbd 1.0.7: Massive inline galleries update, memoization, back button, preloading and other features. Fix some minor bugs, add `ascii_face` to utils 2022-03-27 21:27:59 +00:00
hikari.ftg 3fde53f5f4 1.0.6: Add welcome message, triggered on userbot is installed 2022-03-27 17:52:36 +00:00
hikari.ftg ae2acaa9e2 Fix typo 2022-03-27 16:40:06 +00:00
hikari.ftg ff3a32e64a 1.0.5: Add gallery memoization (ability to close gallery and scroll it back) 2022-03-27 16:38:55 +00:00
hikari.ftg 927300dbc5 Deepsource fixes 2022-03-27 15:43:14 +00:00
hikari.ftg b98b930c81 Deepsource fixes 2022-03-27 15:33:18 +00:00
hikari.ftg 4c68b2aebb Deepsource fixes 2022-03-27 15:06:15 +00:00
hikari.ftg 2de1d54500 Do not load Okteto pinger if userbot is not installed there 2022-03-27 13:28:28 +00:00
hikari.ftg b95887e20c 1.0.4: Add Okteto pinger, which will wake the pod up, when it goes to sleep 2022-03-27 13:19:29 +00:00
hikari.ftg 887b15902a Add env variables visibility to web 2022-03-27 12:43:52 +00:00
hikari.ftg 3985152b84 Minor bug fixes. Base for okteto pinger support 2022-03-27 12:40:52 +00:00
hikari.ftg 1d940b2b7f Digging and re-digging code 2022-03-26 23:10:09 +00:00
hikari.ftg b499c4ab1d Minor bug fixes 2022-03-26 21:18:28 +00:00
hikari.ftg 4118a7db6a Replace raw text response with actual object 2022-03-24 18:57:09 +00:00
hikari.ftg 3bec860eca Attempt to fix web 2022-03-24 18:51:56 +00:00
hikari.ftg e72e4a28d3 Attempt to fix web 2022-03-24 18:47:17 +00:00
hikari.ftg c6f59e4eb6 Fix initial setup (pass auth) 2022-03-24 18:22:20 +00:00
hikari.ftg 84320b6961 Update README, fix some bugs 2022-03-24 17:59:18 +00:00
hikari.ftg f1171e2683 Fix a lot of stuff in web, add a lot of new features to web, merge root and initial_root, remove trailing whitespaces and other sutff 2022-03-24 13:59:16 +00:00
hikari.ftg a40fd0b1ec Continue refactoring stuff, removing redundant (IMHO) code, fix core modules; Added sub-license for edited files 2022-03-23 18:48:26 +00:00
hikari.ftg 34d58b5342 Full restructure of core code, refactor web, create new active bg 2022-03-23 17:38:35 +00:00
hikari.ftg 42d62c5b20 Update web 2022-03-23 13:11:05 +00:00
hikari.ftg 0112296998 Remove redundant backuper as it is available in classic repo, add okteto badge in info 2022-03-22 17:51:55 +00:00
hikari.ftg 53a7350672 Add logging to inline 2022-03-22 16:41:45 +00:00
hikari.ftg 6b96d4334f Move stylesheets from web to static, replace avatar, fix some shit 2022-03-22 15:55:41 +00:00
hikari.ftg 041960117f Continue fixing stuff; Add okteto support (manual build as far) 2022-03-22 15:03:50 +00:00
hikari.ftg 270ff31da0 Update utils list, add geek compat layer 2022-03-22 13:09:00 +00:00
hikari.ftg 92a9ad7707 Fix indentation 2022-03-21 16:35:10 +00:00
hikari.ftg c29dad21ea Add send_file exception ignore 2022-03-21 16:24:04 +00:00
hikari.ftg e54c65f819 Fix stuff 2022-03-21 16:08:13 +00:00
hikari.ftg 57e350d33d Drop heroku support, remove redundant code, remake badge and installer 2022-03-21 15:57:36 +00:00
Dan Gazizullin f0548ba0bd Merge pull request #2 from LastPlay/patch-3
mod license
2022-03-21 17:19:54 +03:00
hikariatama 9e3767c34d mod core.py license 2022-03-21 16:16:23 +02:00
hikariatama 9587f49f0a mod license 2022-03-21 16:13:56 +02:00
hikari.ftg 4cfe973823 Return accidentaly ignored translations 2022-03-21 13:03:13 +00:00
hikari.ftg 846981be66 Add failed dependency to log 2022-03-21 12:58:09 +00:00
hikari.ftg 7ad89e4995 Update installer 2022-03-21 12:55:31 +00:00
hikari.ftg 29d1027697 Continue development 2022-03-21 09:24:50 +00:00
hikari.ftg e761b73a41 Continue development 2022-03-21 08:59:49 +00:00
hikari.ftg ef95f77789 Initial commit 2022-03-21 05:57:25 +00:00