Giter Club home page Giter Club logo

hikka's Introduction

DeepSource DeepSource

 Code style: black


Installation

Installation page

Local installation:

Simply run this command out of root and follow the instructions of installer:
. <(wget -qO- https://hikariatama.ru/get_hikka)

Manual installation (no script):
apt update && apt install git libcairo2 -y && git clone https://github.com/hikariatama/Hikka && cd Hikka && pip install -r requirements.txt && python3 -m hikka If you are on VPS\VDS, type --proxy-pass in the end of command to open SSH tunnel to your Hikka web interface, or use --no-web to complete setup in console

Some further details:
Pre-installed automatic database backuper
Welcome installation info

Changes

  • 🆕 Latest Telegram layer with reactions, video stickers and other stuff
  • 🔓 Security improvements, including native entity caching and targeted security rules
  • 🎨 UI/UX improvements
  • 📼 Improved and new core modules
  • ⏱ Quick bug fixes (compared to official FTG and GeekTG)
  • ▶️ Inline forms, galleries and lists
  • 🔁 Full backward compatibility with FTG, GeekTG and Dragon Userbot modules

Requirements

  • Python 3.8+
  • API_ID and HASH from Telegram

Documentation

Check out dev.hikka.pw for developers' documentation and hikka.pw for users' documentation



Features

Forms - bored of writing? Use buttons! Galleries - scroll your favorite photos in Telegram
Inline - share userbot with your friends Bot interactions - "No PM"? No problem. Feedback bot at your service
InlineLogs - traceback directly in message, caused error Grep - execute command and get only required lines

👨‍👦 NoNick, NoNickUser, NoNickCmd, NoNickChat - use another account for userbot


⚠️ This project is provided as-is. Developer doesn't take ANY responsibility over any problems, caused by userbot. By installing Hikka you take all risks on you. This is but not limited to account bans, deleted (by Telegram algorithms) messages, SCAM-modules, leaked sessions (due to SCAM-modules). It is highly recommended to enable the API Flood protection (.api_fw_protection) and not to install many modules at once. By using Hikka you give your consent to any actions made by your account in background in purposes of automatization. Please, consider reading https://core.telegram.org/api/terms for more information.

Special thanks to:

  • Hackintosh5 for FTG, which is the base of project
  • Kazunimo for Turkish translation pack
  • Hegakura for Tatar translation pack
  • Aldehydesäure for German translation pack
  • Amore for Uzbek translation pack
  • Lonami for Telethon, which is the base of Hikka-TL
  • Dan for pyrogram, which is the base of Hikka-Pyro

hikka's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

hikka's Issues

All the language buttons in quickstart are "English", and fix for it

  • This bug is related to Hikka userbot itself. It is not related to modules.

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:

  1. Install userbot as intended
  2. The inline bot will message you

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)

Add a header to mark whether the module will loaded by Hikka or not

  • My suggestion is related to Hikka userbot itself. It's not about illegal stuff, doesn't violate Telegram EULA and human rights and is not related to modules.

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.

TCP Connection for Multiaccount in one Instance

Before continuing, check the mark below

  • My suggestion is related to Hikka userbot itself. It's not about illegal stuff, doesn't violate Telegram EULA and human rights and is not related to modules.

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.

Add API Flood protection

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

Command prefix should not be transliterated

  • This bug is related to Hikka userbot itself. It is not related to modules.

Describe the bug
When prefix is ? it will react to an edited , <command>

To Reproduce

  1. Steps to reproduce the behavior:
  2. setprefix to ?
  3. send a message with an command like ,ping
  4. edit it to , 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

Logger stops working after getting error 400/500 from aiogram

  • This bug is related to Hikka userbot itself. It is not related to modules.

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

Settings command

  • My suggestion is related to Hikka userbot itself. It's not about illegal stuff, doesn't violate Telegram EULA and human rights and is not related to modules.

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

Config Command Suggestion

  • My suggestion is related to Hikka userbot itself. It's not about illegal stuff, doesn't violate Telegram EULA and human rights and is not related to modules.

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))

Hikka Bugs

  • This bug is related to Hikka userbot itself. It is not related to modules.

Describe the bug

  • alias still won't survive a reboot. (Fixed in 1.1.27)

🔮 Version: 1.1.24 #3453fb98

У меня постоянно хикка слетает

  • My suggestion is related to Hikka userbot itself. It's not about illegal stuff, doesn't violate Telegram EULA and human rights and is not related to modules.

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.

WebUI Bug

  • This bug is related to Hikka userbot itself. It is not related to modules.

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:

  1. Go to webui
  2. Add new phone
  3. fully login
  4. at inline bot creation put in a username (or without username for other error)
  5. See error

Screenshots
photo_2022-05-19_10-53-16
photo_2022-05-19_11-32-05

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.

Hikka 1.6.x wont run in a docker container

  • This bug is related to Hikka userbot itself. It is not related to modules.

Describe the bug
Nothing happens (no output) on starting hikka in a docker container on oracle

To Reproduce
Steps to reproduce the behavior:

  1. Build a docker image from this Dockerfile
  2. Run: docker start (image id)
  3. After some time run: 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

ruamel.yaml.reader.ReaderError: unacceptable character #x009f: control characters are not allowed in "<unicode string>", position 61

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?

Del Phone Number on WebUI

Before continuing, check the mark below

  • My suggestion is related to Hikka userbot itself. It's not about illegal stuff, doesn't violate Telegram EULA and human rights and is not related to modules.

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)

inline menu in forums

  • This bug is related to Hikka userbot itself. It is not related to modules.

Describe the bug
Input in forums doesnt work.

To Reproduce
Steps to reproduce the behavior:

  1. .config
  2. choose any module with "input vaule"
  3. click on input value
  4. nothing happens

Expected behavior
normal input menu with the @

Userbot installation info:

  • Platform:

  • 🐳 Docker

  • Hikka version:
    1.6.3

LaTeX

Create a module, which will provide auto-replacement of simple LaTeX characters and furthermore provide and ability to render a complex LaTeX formula/document

IDs in spoilers.py

Before continuing, check the mark below

  • My suggestion is not about illegal stuff, doesn't violate Telegram EULA and human rights.

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:

Attempt to hide via bot

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

HikkaDL is not working properly

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

Hikka Modules Suggestions

  • My suggestion is not about illegal stuff, doesn't violate Telegram EULA and human rights.

silent_tags.py:

  • Add a global white/blacklist switch for id related configs.

UnitHeta does not open the inline form properly

This bug is related to Hikka userbot itself. It is not related to modules.

Describe the bug
UnitHeta crashes when special words in argument
To Reproduce

  1. Type command "heta exit" or "heta block"

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

All the language buttons in quickstart are "English", and fix for it

  • This bug is related to Hikka userbot itself. It is not related to modules.

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:

  1. Install userbot as intended
  2. The inline bot will message you

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)

MonkeyType

Create a module, which will allow to share MonkeyType.com stats in a comfortable way

Hikka Suggestions

  • My suggestion is related to Hikka userbot itself. It's not about illegal stuff, doesn't violate Telegram EULA and human rights and is not related to modules.

Describe the suggestion
Change the restart message when the bot has fully loaded.

Shikimori functionality extension

It is currently in development state, so there are a little functionality, which needs to be extended

  • Possibility to mark anime with different tags aka "Seen", "In progress" etc.
  • Rework token refreshment mechanism
  • Parse anime status and include it in inline result
  • Fix link in inline result
  • Complete translation

HikariChat improvements

  • Add \u3164 to antizalgo blocking regex
  • Rework join events tracking from watcher to native one
  • Add .purge functionality
  • Add flood ratelimiter

123

Йе, уроки закончились, значит сегодня суббота
Я захожу на Twitch и пишу кому-то в чат: «Поплачь, блядота»
Чтобы не плакала девочка надо написать пару пиздатых паст
Мне похуй на это, я очень классный пац, йе
Я захожу на Twitch и пишу всем оскорбления
Заниматься вот этой хуйнёй вообще-то мне честно не лень, бля
Я очень классный, я обожаю смотреть Братишкина и Мазеллова
Я ещё спорю чей чат намного пиздат чё, ну я считаю что у Мазеллова, реально
У Мазеллова самые охуенные треки, «Маз Корж» — изобретение века, ну что ж
Охуенно, спасибо, зачитал как бог, йе
Боже, как же он читает, как же он фристайлит, как мы его все понимаем, йе
— О, Жожо в чате, ты чё про Гаечку пиздел?
— Да я просто сидел и читал рэпак и сидел без дела, она зашла мне в чат, выписала какую-то хуйню в субботу, ну я ей просто сказал: «А ну-ка, ну-ка, поплачь, блядота», йе

[Припев]
Поплачь, блядота
Поплачь, блядота, у-у
Поплачь, блядота
Поплачь, сегодня суббота, йе
Поплачь, блядота
Поплачь, блядота, у-у
Поплачь блядота
Поплачь, ведь сегодня суббота, йе

[Куплет 2]
Очень классный пац
Сидим в TikTok'е, залипаем классно
Охуенные классные TikTok'и с Иваном Золо, во, мне не пофиг
Так нравятся TikTok'и Эвелона, он охуенно снимает и клёво
С кем-то там, с Некоглаем, ну, честно это хуйня нереальная, у-у

[Припев]
Поплачь блядота, кхм
Поплачь блядота
Поплачь блядота
Ведь сегодня суббота, о-о-о
Поплачь блядота
Поплачь блядота
Поплачь блядота
Хорошо, что сегодня суббота

[Куплет 3]
Я захожу на Twitch, посмотреть кто стримит
Я сижу один и дрочу за компом в своей квартире
Мне если честно вообще никто не нравится из стримеров в принципе
Но я считаю что лучше всех — это Дмитрий Ликс
Потому что он старый и классный
Старый и пиздатый
Старый и крутой
Старый и клёвый
Я мечтаю чтобы он был учителем в моей школе
Он очень классный чел, мне он очень нравится
Хочу чтоб Дмитрий Ликс меня прям выебал в задницу, йе

[Припев]
Поплачь блядота, у-у
Поплачь блядота
Поплачь блядота
Знаю что сегодня суббота, йе, йе
Поплачь блядота
Поплачь блядота
Поплачь блядота
Ведь сегодня суббота, хули

No Button Hikka Info

Before continuing, check the mark below

  • This bug is related to Hikka userbot itself. It is not related to modules.

Describe the bug
A clear and concise description of what the bug is.

To Reproduce
Steps to reproduce the behavior:

  1. Go to '.config'
  2. Click on 'HikkaInfo'
  3. Click on 'custom_button'
  4. Click on 'enter value'
  5. press inline message (so actually nothing as button)
  6. it will create an error on .info

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.

The bot replies in chats user already left

  • This bug is related to Hikka userbot itself. And also related to modules.

Describe the bug
The bot replies in chats where I am already absent
Or where I have never been, but I wrote there through comments

Бот отвечает в чатах, где меня уже нет
Либо где меня никогда не было, но я писал там через коментарии

Expected behavior
Чтобы была настройка в security или он вообще не отвечал там где меня уже нет.

To have a setting in security or he didn’t answer at all where I’m no longer there

Screenshots
изображение

Userbot installation info:

  • Platform

  • [*] 🌺 Other platform

  • Hikka version: 1.6.2

овово

  • This bug is related to Hikka userbot itself. It is not related to modules.

Describe the bug
A clear and concise description of what the bug is.

To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

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.

Поддержка Nokia N900?

Я решил запустить hikka на nokia n900 и он её определяет, но ставит "?". Будет ли поддержка Nokia N900?
image

silent_tags suggestions

Before continuing, check the mark below

  • My suggestion is not about illegal stuff, doesn't violate Telegram EULA and human rights.

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

Wrong build ver on git pull

Before continuing, check the mark below

  • This bug is related to Hikka userbot itself. It is not related to modules.

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.

A "sudo" user can add and remove "owner" users (including themselfs)

  • This bug is related to Hikka userbot itself. It is not related to modules.

Describe the bug
A 'sudo' user can use owneradd on themselfs

To Reproduce
Steps to reproduce the behavior:

  1. Add someone to the sudo group
  2. Now they can do .owneradd on themselfs, giving them owner access

Expected 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)

Remove external_bl.

  • My suggestion is related to Hikka userbot itself. It's not about illegal stuff, doesn't violate Telegram EULA and human rights and is not related to modules.

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.

Could not find input entity due to get_perms_cached

  • This bug is related to Hikka userbot itself. It is not related to modules.

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.

user = await self.get_entity(user) if user else None

Expected behavior
Check if the User is actually an Entity or an Int.

Screenshots
If applicable, add screenshots to help explain your problem.

  • Hikka version:
    1.6.3

Additional context
Something like that would fix it.

user = (
    await self._client.get_entity(user)
    if user and isinstance(user, int)
    else user
)

Add an argument `form` to `utils.asset_channel`

  • My suggestion is related to Hikka userbot itself. It's not about illegal stuff, doesn't violate Telegram EULA and human rights and is not related to modules.

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.

_folder: typing.Optional[str] = None,

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]:

Inline spotify dont open.

Before continuing, check the mark below

  • [*] This bug is related to module from official repository.

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.

при удалении пользовательской группы пишет ошибку <Не найдена>

  • This bug is related to Hikka userbot itself. It is not related to modules.

Describe the bug
A clear and concise description of what the bug is.

To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

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:
  • ✌️ lavHost
  • Hikka version:
    1.6.3 #ce1f24f
    Additional context
    Add any other context about the problem here.
    I created a security group with a name in English, and when deleted it still writes not found

Hikka bug report

  • This bug is related to Hikka userbot itself. It is not related to modules.

Describe the bug
Hikka not work in new account

To Reproduce
Steps to reproduce the behavior:

  1. Clone repo
  2. Start Hikka
  3. In web set up Hikka
  4. See error(Hikka not working, but installed)

Expected behavior
A working user bot, creating a bot in @Botfather, but instead only a hikka-assets chat was created

Screenshots
изображение
изображение
изображение
изображение

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

0cd4d619c318

  • My suggestion is not about illegal stuff, doesn't violate Telegram EULA and human rights.

Short description of idea:

If you have an existing implementation of this idea, e.g. in another userbot, attach it here:

Any additional information:

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.