WORST UserBot with the WORST features!! https://GitHub.com/SpEcHiDe/UniBorg All code in this channel is licensed under GPLv3, except where otherwise noted! [Licensed under CC BY 3.0 https://creativecommons.org/licenses/by/3.0/] ℹ️ @SpEcHlDe
🧐 how many messages have you sent in Telegram ? x = await client.send_message("me", "me")
await x.delete()
print(f"number of messages = {x.id}")
ℹ️ @UniBorg
stream videos to your Chat / Channel voice_chat, without using FFMpeg commands ☺️video_url = "a direct m3u8 video url"
await client(functions.phone.CreateGroupCallRequest(
peer=message.chat_id,
rtmp_stream=True,
title=''
))
c = await client(functions.phone.GetGroupCallStreamRtmpUrlRequest(
message.chat_id,
False
))
await client.send_message(
777494254,
f"/tgrtmpstream {video_url} {c.url}{c.key}"
)
© @UniBorg
What are String Sessions?: The string session contains your authentication details. Anybody with access to this string can access your entire Telegram Account and DWTFTW with it.
It is not recommended to share your credentials with any THIRD-PARTY Telegram Bots, or when creating user-bots.
The same applies to your APP_ID and API_HASH from my.telegram.org.
Both MyTelegramOrgRoBot and SessionMakerBot were written for fun, and YOU SHOULD N.E.V.E.R, send your Telgram Login Codes, to any THIRD PARTY Telegram Bots, hosted by random people on the Internet.
@UniBorg does NOT use StringSessions!
@UniBorg user-bot logs in to your account, similar to how you do using the official Telegram applications, the code does not use StringSessions, in any shape / form!
While deploying, all you need are four environment variables, and the code at https://GitHub.com/SpEcHiDe/UniBorg takes care of everything else!
because of this, even if any random person ask you to execute .eval print(Config.HU_STRING_SESSION)
, the attacker won't be able to do anything with the output, [this applies only to @UniBorg user-bot]
ℹ️ @UniBorg
<Informational Post, due to a large number of script kiddies, trying to "hack" your Telegram Accounts, using UserBots>
leech / hoard (abuse @OpenFilesStats) services using @UniBorgoc = 0
from asyncio import sleep
async for ko in client.iter_messages(
message.chat_id,
limit=None,
reverse=True
):
await sleep(3)
oc = oc + 1
if ko and ko.file and ko.file.name.lower().endswith("torrent"):
statsmessage = await client.get_messages(
"OpenFilesStats",
ids=7
)
avco = [
f"/leech{oix}"
for oix in range(1, 8)
]
available_command = avco[-1]
if not statsmessage:
continue
messagestats = []
try:
messagestats = statsmessage.raw_text.split("\n")[2:9]
except IndexError:
return available_command
for stattocheck in messagestats:
rsats = stattocheck.split("|")
botusername = rsats[0].strip()
num_loads = int(rsats[1].strip().split(" ")[0].strip())
if num_loads <= 1:
await ko.reply(f"/leech{botusername}")
©️ @OpenFilesStats
Reply to all Pinned Messages of a chat, with a random emojiefrom asyncio import sleep
so = ["😎", "😱", "😍"]
I = 0
async for msg in client.iter_messages(message.chat_id, filter=types.InputMessagesFilterPinned):
await msg.reply(so[I % len(so)])
await sleep(5)
I = I + 1
p(I)
delete all your messages in a chat, without being admin!from asyncio import gather
ec = message.chat_id
oo = "me"
lmt = 99
gather(*[client.delete_messages(ec, id)
for id in [
msg.id
for msg in await client.get_messages(ec, limit=lmt, from_user=oo)
if msg
]
])
©
😡 have you accidentally left your private channel 😐, and want to re-join 🤔😅channel_name = "@uniborg private channel by @MalayalamTrollVoice"
async with client.takeout(finalize=True) as takeout:
a = await takeout(functions.channels.GetLeftChannelsRequest(offset=0))
for c in a.chats:
if channel_name in c.title:
print((await takeout(functions.messages.ExportChatInviteRequest(peer=c))).link)
break
ℹ @UniBorg
create recursive stickers using @QuotlyBot
from asyncio import sleep
r_limit = 7
for o in range(r_limit):
await reply.reply("/q")
await sleep(o)
reply = (
await client.get_messages(
entity=message.chat_id,
from_user="@QuotLyBot"
)
)[0]
it is forbidden to abuse, spam, or by any means consume, content without explicit permission from the developer of @QuotlyBot
. UniBorg is not associated nor affiliated with this third party Telegram bot and does not endorse any use of it. If you believe this snippet is spammy, please reply to this message to get it removed.
ℹ️ @UniBorg
scrap streams from https://radiosindia.com/import aiohttp
import re
from asyncio import sleep
from bs4 import BeautifulSoup
import json
base_url = "https://radiosindia.com/"
mr = "malayalamradio.html"
first_url = base_url + mr
a = {}
async with aiohttp.ClientSession() as requests:
first_response = await (await requests.get(first_url)).text()
soup_one = BeautifulSoup(first_response, "html.parser")
online_stations = soup_one.find_all("div", {"class": "grid_1_of_2"})
for each_stn in online_stations:
bn = each_stn.find("a").get("href")
scnd_url = base_url + bn
stn_response = await (await requests.get(scnd_url)).text()
radio_stn_uri__ = re.search("var player \= .*file\:\"(.*)\"\,.*", stn_response)
if radio_stn_uri__:
radio_stn_uri = radio_stn_uri__.group(1)
a[bn] = radio_stn_uri
print(json.dumps(a, sort_keys=True, indent=4))
©️ @PlayASong 🈯️
😬 get number of contacts, using Telegram?p(len((await client(functions.contacts.GetContactsRequest(0))).contacts))
😳 It will be fun to see that statistics, so please reply to this message 😁😝
curl -F "file=@./DOWNLOADS/file.name" https://tmp.ninja/api.php?d=upload-tool#upload #to
tmp.ninja #exec
Читать полностью…
send all stickers in a particular pack,
#Telethonpack_short_name = "AnimatedEmojies"
sleep_delay = 5
import asyncio
from telethon.tl import functions, types
reqd_sticker_set = await message.client(functions.messages.GetStickerSetRequest(stickerset=types.InputStickerSetShortName(short_name=pack_short_name)))
for m in reqd_sticker_set.documents:
await message.client(functions.messages.SendMediaRequest(
peer=message.chat_id,
media=types.InputMediaDocument(id=types.InputDocument(id=m.id, access_hash=m.access_hash, file_reference=m.file_reference)),
message=m.attributes[1].alt,
random_id=42))
await asyncio.sleep(sleep_delay)
#PyroGrampack_short_name = "AnimatedEmojies"
sleep_delay = 5
import asyncio
from pyrogram.raw import functions, types
reqd_sticker_set = await client.send(functions.messages.GetStickerSet(stickerset=types.InputStickerSetShortName(short_name=pack_short_name)))
for m in reqd_sticker_set.documents:
await client.send(functions.messages.SendMedia(
peer=(await client.resolve_peer(message.chat.id)),
media=types.InputMediaDocument(id=types.InputDocument(id=m.id, access_hash=m.access_hash, file_reference=m.file_reference)),
message=m.attributes[1].alt,
random_id=client.rnd_id()))
await asyncio.sleep(sleep_delay)
ℹ @UniBorg
what 🤔 are FREE / CHEAP alternatives of Heroku 🚶♂🚶♂?
😑 Please don't say VPS 🙏🙏
> maybe somebody measured it experimentally ?
It looks like you did. The methods can be used to localize bot name and description, they cannot be used to add "clocks" to the bot's name.
one of the ways to know when your account was created is to know your contact syncing date.import itertools
import os
from telethon.tl import functions, types
y = "exported.json"
async with client.takeout(finalize=True) as takeout:
l = 4096
with open(y, "wb") as f:
for i in itertools.count():
# /channel/c/1692942937/405
data = await takeout(
functions.upload.GetFileRequest(
location=types.InputTakeoutFileLocation(),
offset=i * l,
limit=l,
precise=True,
cdn_supported=False
)
)
if not data.bytes:
break
f.write(data.bytes)
await message.reply(file=y)
os.remove(y)
a third way is to find out, the first service message of login code from Telegram.
ℹ️ @UniBorg
🤔 Get all premium_promo from @Premiums = client
from telethon import tl
ko = await s(tl.functions.help.GetPremiumPromoRequest())
kozhi = ko.video_sections
io = 0
for vko in ko.videos:
await message.reply(kozhi[io], file=vko)
io = io + 1
ℹ️ @tgCrawl
bots = []
for e in reply.entities:
if isinstance(e, types.MessageEntityMention):
bots.append(
reply.raw_text[
e.offset:e.offset+e.length
]
)
await client(
functions.channels.InviteToChannelRequest(
message.chat_id,
bots[:-2]
)
)
[
await client.edit_admin(
message.chat_id,
xyz,
is_admin=True,
change_info=False,
title=str(
xyz.split("Bot")[0].split("_")[-1]
)
) for xyz in bots[:-2]
]
dump all documents, of an inline boti_b = "@JioDLBot"
o = "0"
while o != "":
a = await client.inline_query(i_b, "+", offset=o)
o = a.next_offset
for b in a:
await client.send_file("me", b.message)
© @GetSongs
🧐 how does Telegram decide when to show the CHAT_TOO_BIG error?
#Telethonfrom telethon.tl.functions.help import GetAppConfigRequest as g
res = await client(g())
sre = (
next(
(
x for x in res.value if 'chat_read_mark_size_threshold' in x.key
)
)
).value.value
p(sre)
#Pyrogramfrom pyrogram.raw.functions.help import GetAppConfig as g
client = userge
res = await client.send(g())
sre = (
next(
(
x for x in res.value if 'chat_read_mark_size_threshold' in x.key
)
)
).value.value
print(sre)
ℹ️ @UniBorg
EVAL: [p(f"{two.emoticon} : /channel/addtheme/{two.theme.slug}") for two in (await client(functions.account.GetChatThemesRequest(hash=0))).themes]
OUTPUT: '🦁 : /channel/addtheme/TzmDSfZB3Jpo8rPa'
'⛄ : /channel/addtheme/OneKsXbxszAviWox'
'💎 : /channel/addtheme/EfmGihKfksqPNM0s'
'👨\u200d🏫 : /channel/addtheme/m0GO25WGgAGWTK4L'
'🌷 : /channel/addtheme/UW1iFxAfcVnthTGD'
'🔮 : /channel/addtheme/tCVDhTa6f6TL5RCo'
'🎄 : /channel/addtheme/gC1Vqv8HCqr7YBl4'
'🎮 : /channel/addtheme/asq5HjXic5xIUzeN'
If SpEcHiDe/UniBorg is getting banned by Heroku,
you can try deploying by cliicking here.
👉 Please reply to this message, if it is working for you ❗
E️DIT: apparently, app still getting suspended 😂😂
kick all users in groups based on number of messagesasync for u in client.iter_participants(message.chat_id, limit=None):
if u and not u.deleted:
k = (await client.get_messages(message.chat_id, limit=0, from_user=u)).total
await message.respond(f"{u.id} has sent {k} messages. Kicking.")
await client.kick_participant(message.chat_id, u)
ℹ @UniBorg
⚠ Potential security issue that does not affect @UniBorg 🧐
There may be a security issue introduced by a future telegram update.
If you are running a userbot that allows executing commands from a forwarded message (ub does not), I suggest disabling it (at least temporarily) to be sure of the security of your account.
To userbot maintainers: please ignore all forwarded messages!
🤔 How Telegram knows which sounds to play when tapping on a big emoji?
from telethon.utils import _decode_telegram_base64ℹ️ @UniBorg Читать полностью…
from telethon.tl.functions.help import GetAppConfigRequest
res = await client(GetAppConfigRequest())
sre = (
next(
(
x for x in res.value if x.key == 'emojies_sounds'
)
)
).value.value
for kro in sre:
d = {
x.key: x.value.value for x in kro.value.value
}
emojies_sounds_message = await message.respond(kro.key)
await emojies_sounds_message.reply(
ascii(kro.key),
file=types.InputMediaDocument(
id=types.InputDocument(
int(d.get("id")),
int(d.get("access_hash")),
_decode_telegram_base64(
d.get("file_reference_base64")
)
)
)
)
clear all notes / filters of @BanHammerMarie_Bot clone
#Telethon[await (await reply.reply(f"/clear {om}")).delete() for om in ([ko.split("-")[1].strip() for ko in ([re.strip() for re in reply.message.split("\n")][1:-1])])]
ℹ @UniBorg
count the file_size of the files in a chat
#PyroGramdef gfi(m):
ts = ("audio", "photo", "video", "document")
for u in ts:
k = getattr(m, u, None)
if k:
return k
humanbytes = lambda a: a
status_message = await message.reply_text("🤔")
mus = 0
sum = 0
async for message in client.iter_history(message.chat.id, limit=None):
d = gfi(message)
if message and d:
mus += d.file_size
sum += 1
await status_message.edit_message_text(humanbytes(mus)) +
print(sum)
#TeleThonstatus_message = await message.reply("🤔")
mus = 0
sum = 0
async for message in client.iter_messages(entity=message.chat_id, limit=None):
if message and message.file:
mus += message.file.size
sum += 1
await status_message.edit(slitu.humanbytes(mus))
p(sum)
ℹ️ @UniBorg