hikariatama / hikka Goto Github PK
View Code? Open in Web Editor NEWThe most fresh and updateable developer-oriented Telegram userbot
Home Page: https://hikka.pw
License: GNU Affero General Public License v3.0
The most fresh and updateable developer-oriented Telegram userbot
Home Page: https://hikka.pw
License: GNU Affero General Public License v3.0
Describe the bug
A clear and concise description of what the bug is.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Userbot installation info:
Module, related to problem [E.g. HikariChat]:
inline player ex DLC for Spotify Now
Short description of the bug:
dont load inline player
Steps to reproduce:
.splayer - > press open (dont react to pressing)
Any additional information:
Spotify Now installerd, all req too, but inline addon dont work.
Describe the bug
All the language related buttons in quickstart.py are "🇬🇧 English", i think thats because on line 59 you clearly take "language" from self.strings
which is a "current language", most probably user wont be able to change language before that messages sends so that will be english.
Probably an easy fix would be to change line 59 to "text": translations.SUPPORTED_LANGUAGES.get(lang, lang),
For more info scroll down starting here
(looks like its already fixed on unstable)
To Reproduce
Steps to reproduce the behavior:
Expected behavior
All the buttons should have their own languages
Userbot installation info:
Platform:
🕶️ Termux
✌️ lavHost
☁️ Okteto
🐳 Docker
🌺 Other platform
Hikka version: latest master (1.6.2 06f5290)
Describe the suggestion
We can create an asset_channel currently but we cannot automatically create it as a forum, so we need to change that later. I Would like to have an option to already make it an forum.
Line 731 in ce1f24f
Additional context
Something like that:
async def asset_channel(
client: CustomTelegramClient,
title: str,
description: str,
*,
channel: bool = False,
silent: bool = False,
archive: bool = False,
invite_bot: bool = False,
avatar: typing.Optional[str] = None,
ttl: typing.Optional[int] = None,
forum: bool = false,
_folder: typing.Optional[str] = None,
) -> typing.Tuple[Channel, bool]:
Describe the bug
A clear and concise description of what the bug is.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Send .info just without a button
Log
File "/hikka/dispatcher.py", line 448, in future_dispatcher
await func(message)
File "", line 137, in infocmd
IndexError: list index out of range
Userbot installation info:
Platform:
🕶️ Termux
✌️ lavHost
☁️ Okteto
Docker
Hikka version:
Version: 1.1.22
Build: 3ed1980
Additional context
Add any other context about the problem here.
When one attempts to delete the security group, the error "the group does not exist" is thrown.
Solution: Restrict the group name to lowercase english characters and throw error if any other characters are provided.
--
Edited by maintainer.
Short description of idea:
On spoilers.py add the ability to use usernames and IDs, since not everyone has an username.
If you have an existing implementation of this idea, e.g. in another userbot, attach it here:
Any additional information:
As user suggested, there is a flag hide_via
in telegram schema, so it needs to be tested. I don't think, it will work tho
Describe the bug
When prefix is ?
it will react to an edited , <command>
To Reproduce
?
,ping
, ping
will react to it
Does work with every command
Expected behavior
Only react to ?
Userbot installation info:
Platform:
🕶️ Termux
✌️ lavHost
☁️ Okteto
🐳 Docker
🌺 Other platform
Hikka version:
1.6.3
Weird websockets don't want to keep connection alive, that's why download buttons are not working.
Possible solution: Add keep-alive timer and reconnect immediately after it expires.
Or find out, why sockets are phantomely silently closing
Create a module, which will provide auto-replacement of simple LaTeX characters and furthermore provide and ability to render a complex LaTeX formula/document
Describe the bug
A clear and concise description of what the bug is.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Userbot installation info:
Platform:
🕶️ Termux
✌️ lavHost
☁️ Okteto
🐳 Docker
🌺 Other platform
Hikka version:
Additional context
Add any other context about the problem here.
Describe the bug
Nothing happens (no output) on starting hikka in a docker container on oracle
To Reproduce
Steps to reproduce the behavior:
docker start (image id)
docker logs (container id)
(or/and docker ps
to see if that container is actually running or not)Expected behavior
Expected to see a "Please visit x.x.x.x:8080" text
Userbot installation info:
Platform:
🕶️ Termux
✌️ lavHost
☁️ Okteto
🐳 Docker
🌺 Other platform
Hikka version: latest master from here
Бот отвечает в чатах, где меня уже нет
Либо где меня никогда не было, но я писал там через коментарии
To have a setting in security or he didn’t answer at all where I’m no longer there
Userbot installation info:
Platform
[*] 🌺 Other platform
Hikka version: 1.6.2
Describe the bug
WebUI Inlinebot is buggy. When i try to add a username i get Custom bot setting error
. When i use it without a name i get Login confirmation error
but if I try it repeatedly, about once every 3 seconds (still getting the error), it eventually works. You can see it best when BotFather starts creating.
To Reproduce
Steps to reproduce the behavior:
Userbot installation info:
Platform:
🕶️ Termux
✌️ lavHost
☁️ Okteto
🐳 Docker
🌺 Other platform
Hikka version:
1.1.22 #90b5ab0b (90b5ab0)
Additional context
Add any other context about the problem here.
Short description of idea:
If you have an existing implementation of this idea, e.g. in another userbot, attach it here:
Any additional information:
silent_tags.py:
Describe the bug
A 'sudo' user can use owneradd
on themselfs
To Reproduce
Steps to reproduce the behavior:
sudo
group.owneradd
on themselfs, giving them owner accessExpected behavior
Some sort of "Permission Denied" error
Userbot installation info:
Platform:
🕶️ Termux
✌️ lavHost
☁️ Okteto
🐳 Docker
🌺 Other platform (Lumihost)
Hikka version: 1.6.1 #7008b54 (7008b54)
Additional context
An easy fix should be just to add @loader.owner
on all of the *add
and *rm
commands in hikka_security.py
(thanks to @visionavtr, for finding this out)
Describe the bug
UnitHeta crashes when special words in argument
To Reproduce
Expected behavior
UnitHeta find module with any mention of this word
Logs
File "/home/y/Hikka/hikka/dispatcher.py", line 698, in future_dispatcher
await func(message)
File "<core hikka.modules.unit_heta>", line 187, in hetacmd
message_id, peer, _, _ = resolve_inline_message_id(form.inline_message_id)
AttributeError: 'bool' object has no attribute 'inline_message_id'
Userbot installation info:
Platform:
[ +] 🌺 Other platform (Ubuntu WSL2)
Hikka version:
1.6.3 #ce1f24f
Hikka-TL: 2.0.4 #158
Hikka-Pyro: 2.0.103 #158
Describe the suggestion
A clear and concise description of what you want to happen.
Additional context
Add any other context or screenshots about the feature request here.
Create a module, which will allow to share MonkeyType.com stats in a comfortable way
Describe the bug
In async def get_perms_cached
the user is fetched again even when i send a user entity, this can lead into the telethon error Could not find the input entity for PeerUser(user_id=1234) (PeerUser). Please read https://docs.telethon.dev/en/stable/concepts/entities.html to find out more details.
Line 225 in ce1f24f
Expected behavior
Check if the User is actually an Entity or an Int.
Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
Something like that would fix it.
user = (
await self._client.get_entity(user)
if user and isinstance(user, int)
else user
)
Add Docker as Platform in the Issue Templates.
It is currently in development state, so there are a little functionality, which needs to be extended
Describe the bug
🔮 Version: 1.1.24 #3453fb98
Describe the suggestion
Change the restart message when the bot has fully loaded.
pls add
mtproxy support
Describe the bug
Hikka not work in new account
To Reproduce
Steps to reproduce the behavior:
Expected behavior
A working user bot, creating a bot in @Botfather, but instead only a hikka-assets chat was created
Userbot installation info:
Platform:
🕶️ Termux
✌️ lavHost
☁️ Okteto
🐳 Docker
🌺 Other platform
Hikka version: last
Additional context
I tried it through Docker and just in the VDS console, possibly due to the launch on the Oracle server, but most likely due to the fact that there is no Hikka on the account and there was no Hikka
Short description of idea:
In silent_tags.py there will be a message in the silent-tags group. Since i can't unread send my own messages I don't see when someone tagged me and I do need to check that group manually.
my idea is that the bot sends it instead of the user and so you can see an unread notification. So you can see directly and at a glance that you have been tagged. Since the group is muted anyway, you won't get a notification.
If you have an existing implementation of this idea, e.g. in a another userbot, attach it here:
Any additional information:
Reference: https://mods.hikariatama.ru/view/silent_tags.py
Traceback (most recent call last):
File "/usr/lib/python3.10/runpy.py", line 196, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/usr/lib/python3.10/runpy.py", line 86, in _run_code
exec(code, run_globals)
File "/home/naix/Hikka/hikka/main.py", line 76, in
from . import log
File "/home/naix/Hikka/hikka/log.py", line 29, in
from .web.debugger import WebDebugger
File "/home/naix/Hikka/hikka/web/debugger.py", line 17, in
from .. import main, utils
File "/home/naix/Hikka/hikka/main.py", line 63, in
from . import database, loader, utils, version
File "/home/naix/Hikka/hikka/loader.py", line 28, in
from . import security, utils, validators
File "/home/naix/Hikka/hikka/validators.py", line 15, in
from .translations import SUPPORTED_LANGUAGES, translator
File "/home/naix/Hikka/hikka/translations.py", line 203, in
translator = ExternalTranslator()
File "/home/naix/Hikka/hikka/translations.py", line 133, in init
self.data[lang] = self._get_pack_content(PACKS / f"{lang}.yml", prefix="")
File "/home/naix/Hikka/hikka/translations.py", line 52, in _get_pack_content
return self._get_pack_raw(pack.read_text(), pack.suffix, prefix)
File "/home/naix/Hikka/hikka/translations.py", line 69, in _get_pack_raw
for module, strings in yaml.load(content).items()
File "/home/naix/.local/lib/python3.10/site-packages/ruamel/yaml/main.py", line 434, in load
return constructor.get_single_data()
File "/home/naix/.local/lib/python3.10/site-packages/ruamel/yaml/constructor.py", line 119, in get_single_data
node = self.composer.get_single_node()
File "_ruamel_yaml.pyx", line 701, in _ruamel_yaml.CParser.get_single_node
File "_ruamel_yaml.pyx", line 904, in _ruamel_yaml.CParser._parse_next_event
ruamel.yaml.reader.ReaderError: unacceptable character #x009f: control characters are not allowed
in "", position 61
How to resolve that?
Describe the bug
A clear and concise description of what the bug is.
To Reproduce
Steps to reproduce the behavior:
Update with git pull https://github.com/hikariatama/Hikka.git master
Check build with .info
Expected behavior
display the correct build.
Chat Link
https://t.me/hikka_talks/140924
Userbot installation info:
Platform:
🕶️ Termux
✌️ lavHost
☁️ Okteto
🌺Docker
Hikka version:
Version: 1.1.22
Build: 8f5e879
Additional context
Maybe check/set build on start.
Describe the bug
I dont know at which point but at some point the inlinebot isn't sending messages into the log channel anymore. The errors are still shown in the .log
The inlinebot is still working, since my modules still running i just dont recieve any log message in the log channel till restart. Trying to send a logging.error("asdf")
with python.py also doesnt work. One of the annoying errors since i dont know if something needs my attention.
To Reproduce
Steps to reproduce the behavior:
Sadly dont know.
Expected behavior
Logger shouldnt stop writing in the log channel
Userbot installation info:
Platform:
🐳 Docker
Hikka version:
1.6.3
Describe the suggestion
Something like a settings command for a whole chat which will show which modules are enabled here & what are their actions
Additional context
Improvement for current pchat
Awful code, which breakes if user name of bio contains quotes. Awaits full rework and re-publish
should be :
if self.config["ignore_blocked"] or self.config["silent_blocked"]:
instead of:
if self.config["ignore_blocked"]
https://github.com/hikariatama/ftg/blob/af63c0c9c2459adf019465a9e5fa2c86747cbf08/silent_tags.py#L167
Да
Describe the suggestion
I don't know how it is currently handled, but when I currently produce an error, the bot apparently tries to establish a TCP connection with all logged-in bots. On the one hand, this produces spam in the log and apparently the target also has some kind of DDoS protection, since not all of my accounts can connect and produce a timeout.
If the connection is tried even with a "no error", this is of course even more unnecessary traffic.
Only the necessary/triggered bots should try to establish a connection.
Describe the bug
All the language related buttons in quickstart.py are "🇬🇧 English", i think thats because on line 59 you clearly take "language" from self.strings
which is a "current language", most probably user wont be able to change language before that messages sends so that will be english.
Probably an easy fix would be to change line 59 to "text": translations.SUPPORTED_LANGUAGES.get(lang, lang),
For more info scroll down starting here
(looks like its already fixed on unstable)
To Reproduce
Steps to reproduce the behavior:
Expected behavior
All the buttons should have their own languages
Userbot installation info:
Platform:
🕶️ Termux
✌️ lavHost
☁️ Okteto
🐳 Docker
🌺 Other platform
Hikka version: latest master (1.6.2 06f5290)
It happens. Something went wrong and your userbot got himself in a loop, or just spams API with requests. It's bad so it needs to be tracked and prevented. I've already written a prototype and now it needs to be polished and included as native feature
Describe the suggestion
Add X-Hikka-Loader
header (or something else) when loader is downloading source code of module to load. This can be used to allow modules' authors to give Hikka users one version of module (e.g. with Hikka-only features usage) and another one to FTG/GeekTG users. It is going to be just adding one new line here.
Additional context
Also you may add a setting with which user can control whether do they really want to get another version of modules or not.
It's inconvenient to use only one repo to download official modules from, so add support for multiple repos
ТВОЙ ЮЗЕРБОТ СЛИШКОМ АХУЕНЕН ЧТОБЫ БЫТЬ БЕСПЛАТНЫМ
Describe the suggestion
Since the WebUI can add phones, it would be nice if it also could remove phones on the fly, without deleting files from the system (what is not always possible)
Describe the bug
Input in forums doesnt work.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
normal input menu with the @
Userbot installation info:
Platform:
🐳 Docker
Hikka version:
1.6.3
Йе, уроки закончились, значит сегодня суббота
Я захожу на Twitch и пишу кому-то в чат: «Поплачь, блядота»
Чтобы не плакала девочка надо написать пару пиздатых паст
Мне похуй на это, я очень классный пац, йе
Я захожу на Twitch и пишу всем оскорбления
Заниматься вот этой хуйнёй вообще-то мне честно не лень, бля
Я очень классный, я обожаю смотреть Братишкина и Мазеллова
Я ещё спорю чей чат намного пиздат чё, ну я считаю что у Мазеллова, реально
У Мазеллова самые охуенные треки, «Маз Корж» — изобретение века, ну что ж
Охуенно, спасибо, зачитал как бог, йе
Боже, как же он читает, как же он фристайлит, как мы его все понимаем, йе
— О, Жожо в чате, ты чё про Гаечку пиздел?
— Да я просто сидел и читал рэпак и сидел без дела, она зашла мне в чат, выписала какую-то хуйню в субботу, ну я ей просто сказал: «А ну-ка, ну-ка, поплачь, блядота», йе
[Припев]
Поплачь, блядота
Поплачь, блядота, у-у
Поплачь, блядота
Поплачь, сегодня суббота, йе
Поплачь, блядота
Поплачь, блядота, у-у
Поплачь блядота
Поплачь, ведь сегодня суббота, йе
[Куплет 2]
Очень классный пац
Сидим в TikTok'е, залипаем классно
Охуенные классные TikTok'и с Иваном Золо, во, мне не пофиг
Так нравятся TikTok'и Эвелона, он охуенно снимает и клёво
С кем-то там, с Некоглаем, ну, честно это хуйня нереальная, у-у
[Припев]
Поплачь блядота, кхм
Поплачь блядота
Поплачь блядота
Ведь сегодня суббота, о-о-о
Поплачь блядота
Поплачь блядота
Поплачь блядота
Хорошо, что сегодня суббота
[Куплет 3]
Я захожу на Twitch, посмотреть кто стримит
Я сижу один и дрочу за компом в своей квартире
Мне если честно вообще никто не нравится из стримеров в принципе
Но я считаю что лучше всех — это Дмитрий Ликс
Потому что он старый и классный
Старый и пиздатый
Старый и крутой
Старый и клёвый
Я мечтаю чтобы он был учителем в моей школе
Он очень классный чел, мне он очень нравится
Хочу чтоб Дмитрий Ликс меня прям выебал в задницу, йе
[Припев]
Поплачь блядота, у-у
Поплачь блядота
Поплачь блядота
Знаю что сегодня суббота, йе, йе
Поплачь блядота
Поплачь блядота
Поплачь блядота
Ведь сегодня суббота, хули
Describe the suggestion
Remove external_bl
(branch v1.6.4).
Additional context
This does not contradict human rights, but on the contrary should protect them. The use of userbots is not prohibited in the Telegram Terms of Service and the Telegram API Terms of Service, as long as the person does not use them for spam. You have added a feature that will completely disable Hikka in certain chats without the ability to disable this filter (this is possible by changing the code, but not everyone will be able to do this due to lack of knowledge). Also, bypassing this function will result in a person being banned at the next level of protection. This is also wrong, but more acceptable than the inner layer.
Describe the suggestion
.config can apply settings, which is awesome, but it should have some kind of true
/false
recognition or true/false. Right now i could use tru
or on
and will catch an error than. (example silent_tags.py). It could be checked when the .config says Default: False
.
Additional context
Maybe something like this (or a better one)
>
> def to_bool(value):
> if str(value).lower() in ("true"):
> return True
> if str(value).lower() in ("false"):
> return False
> if not isinstance(to_bool(args[1]), bool):
> return await utils.answer(message, self.strings("error", message))
Some users reported on non-working no web mode, so it needs to be checked
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.