Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
af366e7
Ultroid 2025
New-dev0 Feb 19, 2025
90199a4
Update optional-requirements.txt
New-dev0 Feb 21, 2025
71829bd
Merge branch 'main' into v2
New-dev0 Feb 21, 2025
36ac5ab
Bug fixes
New-dev0 Feb 23, 2025
750fff6
Potential fix for code scanning alert no. 36: Incomplete URL substrin…
New-dev0 Feb 23, 2025
a366b02
Merge branch 'main' into v2
New-dev0 Feb 23, 2025
1bcd29d
Update version.py
New-dev0 Feb 23, 2025
e05f1dd
Web backend
New-dev0 Mar 3, 2025
3cd8f9e
Disable default ssl
New-dev0 Mar 10, 2025
d948517
Setup auth for API calls
New-dev0 Jun 1, 2025
c591bcd
Run server in seperate task
New-dev0 Jun 1, 2025
822040e
Sync v2 with main
New-dev0 Jun 1, 2025
087e840
Handle ConnectionError for longer
New-dev0 Jun 1, 2025
fbdf7e9
Remove SQL, auto-start redis server
New-dev0 Jun 1, 2025
5c1166d
Minor Changes
New-dev0 Jun 2, 2025
9610e39
Setup static build with aiohttp
New-dev0 Jun 2, 2025
be10884
Use MiniApp Url from config
New-dev0 Jun 2, 2025
4073b44
Ignore if downloaded
New-dev0 Jun 2, 2025
49b6cd6
move kang command to separate module from stickertools (#473)
Parvshah-01 Jun 6, 2025
479b630
devtools: fix relative imports inside eval
TechiError Jun 7, 2025
6f66bfd
Merge branch 'main' into v2
Jun 7, 2025
f623f9a
Sync user params
Jun 7, 2025
41622a6
Mini app settings
Jun 8, 2025
01988fa
Buys stars? but for whom?
Jun 8, 2025
a2303e3
Minor fix
Jun 8, 2025
c4145d6
Minor fix
Jun 8, 2025
ceb4269
Fix GDRIVE
buddhhu Jun 8, 2025
9fc9940
use same port for url
New-dev0 Jun 8, 2025
77d6ca1
Merge branch 'v2' of https://github.com/TeamUltroid/Ultroid into v2
New-dev0 Jun 8, 2025
4273f69
Reduce official plugins
New-dev0 Jun 11, 2025
22b8bc6
Reduce official plugins
New-dev0 Jun 11, 2025
a9d0f22
Reduce official plugins
New-dev0 Jun 11, 2025
5e0181d
Format files
New-dev0 Jun 12, 2025
4f93f4d
Change plugin system
New-dev0 Jun 15, 2025
7df5c50
Plugin store api route
New-dev0 Jun 15, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ test*
*.mp3
*.webm
*.webp
*.rdb
*.mp4
*.tgs
*.txt
Expand Down Expand Up @@ -44,4 +45,6 @@ bin-release/
*.raw

# fly.io configs
fly.toml
fly.toml

resources/webapp
2 changes: 0 additions & 2 deletions assistant/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@
from pyUltroid._misc import owner_and_sudos
from pyUltroid._misc._assistant import asst_cmd, callback, in_pattern
from pyUltroid.fns.helper import *
from pyUltroid.fns.tools import get_stored_file
from strings import get_languages, get_string

OWNER_NAME = ultroid_bot.full_name
OWNER_ID = ultroid_bot.uid
Expand Down
1 change: 1 addition & 0 deletions assistant/callbackstuffs.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
from telethon.utils import get_peer_id

from pyUltroid.fns.helper import fast_download, progress
from strings import get_string
from pyUltroid.fns.tools import Carbon, async_searcher, get_paste, telegraph_client
from pyUltroid.startup.loader import Loader

Expand Down
17 changes: 17 additions & 0 deletions assistant/inlinestuff.py
Original file line number Diff line number Diff line change
Expand Up @@ -621,3 +621,20 @@ async def inline_tl(ult):
"Tʟ Sᴇᴀʀᴄʜ": "tl",
}
)

# --------------- Handle users who haven't started the assistant bot ---------------
@in_pattern("startbot")
async def start_bot(event):
result = await event.builder.article(
title="Start Assistant Bot to Continue",
text=(
"To create or manage your sticker pack, you need to start the assistant bot first.\n\n"
"Click the button below to start it."
),
buttons=[
[Button.url("Start Bot", f"https://t.me/{asst.me.username}")]
]
)
await event.answer([result], private=True, cache_time=0, gallery=False)


3 changes: 1 addition & 2 deletions assistant/localization.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,12 @@

import re

from strings import get_languages, get_string
from . import (
Button,
ULTConfig,
callback,
get_back_button,
get_languages,
get_string,
udB,
)

Expand Down
2 changes: 1 addition & 1 deletion install-termux
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ if [ -d "resources" ]
then
echo "Current directory Identified.."
else
apt install git -y
apt install git redis -y
git clone https://github.com/TeamUltroid/Ultroid
cd Ultroid
fi
Expand Down
54 changes: 40 additions & 14 deletions plugins/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,13 @@
from pyUltroid import *
from pyUltroid._misc._assistant import asst_cmd, callback, in_pattern
from pyUltroid._misc._decorators import ultroid_cmd
from telethon.tl.types import Message
from pyUltroid._misc._wrappers import eod, eor
from pyUltroid.dB import DEVLIST, ULTROID_IMAGES
from pyUltroid.fns.helper import *
from pyUltroid.fns.misc import *
from pyUltroid.fns.tools import *
from pyUltroid.startup._database import _BaseDatabase as Database
from pyUltroid.database.base import BaseDatabase as Database
from pyUltroid.version import __version__, ultroid_version
from strings import get_help, get_string
from catbox import CatboxUploader
Expand Down Expand Up @@ -75,19 +76,6 @@ def inline_pic():
-1001473548283, # SharingUserbot
]

KANGING_STR = [
"Using Witchery to kang this sticker...",
"Plagiarising hehe...",
"Inviting this sticker over to my pack...",
"Kanging this sticker...",
"Hey that's a nice sticker!\nMind if I kang?!..",
"Hehe me stel ur stiker...",
"Ay look over there (☉。☉)!→\nWhile I kang this...",
"Roses are red violets are blue, kanging this sticker so my pack looks cool",
"Imprisoning this sticker...",
"Mr.Steal-Your-Sticker is stealing this sticker... ",
]


ATRA_COL = [
"DarkCyan",
Expand All @@ -103,3 +91,41 @@ def inline_pic():
"Moccasin",
"PowderBlue",
]



def deEmojify(inputString: str) -> str:
"""Remove emojis and other non-safe characters from string"""
EMOJI_PATTERN = re.compile(
"["
"\U0001F1E0-\U0001F1FF" # flags (iOS)
"\U0001F300-\U0001F5FF" # symbols & pictographs
"\U0001F600-\U0001F64F" # emoticons
"\U0001F680-\U0001F6FF" # transport & map symbols
"\U0001F700-\U0001F77F" # alchemical symbols
"\U0001F780-\U0001F7FF" # Geometric Shapes Extended
"\U0001F800-\U0001F8FF" # Supplemental Arrows-C
"\U0001F900-\U0001F9FF" # Supplemental Symbols and Pictographs
"\U0001FA00-\U0001FA6F" # Chess Symbols
"\U0001FA70-\U0001FAFF" # Symbols and Pictographs Extended-A
"\U00002702-\U000027B0" # Dingbats
"]+",)
return re.sub(EMOJI_PATTERN, "", inputString)


async def something(e, msg, media, button, reply=True, chat=None):
if e.client._bot:
return await e.reply(msg, file=media, buttons=button)
num = len(STUFF) + 1
STUFF.update({num: {"msg": msg, "media": media, "button": button}})
try:
res = await e.client.inline_query(asst.me.username, f"stf{num}")
return await res[0].click(
chat or e.chat_id,
reply_to=bool(isinstance(e, Message) and reply),
hide_via=True,
silent=True,
)

except Exception as er:
LOGS.exception(er)
Loading
Loading