UniBorg
1.06K subscribers
4 photos
1 video
16 files
39 links
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
Download Telegram
.exec curl -F "file=@./DOWNLOADS/file.name" https://bayfiles.com/api/upload

#upload #to bayfiles.com #exec
.exec ffmpeg -i "${TMP_DOWNLOAD_DIRECTORY}/ffmpeginput.mp4" -vf "drawtext=text='@ReQuestChat':x=10:y=H-th-10:fontsize=15:fontcolor=#cee3f8" -vcodec h264 -strict -2 "${TMP_DOWNLOAD_DIRECTORY}/ffmpegoutput.mp4"

#place #watermark #in #your #videos #exec
🤦‍♀️ how to run the short eval / exec plugins posted in this channel?

1️⃣ Tap on the command.
2️⃣ Select copy.
3️⃣ Open Saved Messages.
4️⃣ Paste the command *.
5️⃣ For any doubts, no one gonna help you 🤣🤣🤣🤣..!


currently available plugins:
👉 recover messages from recent actions: v1 / v2
👉 get width and height of replied image / sticker
👉 mention active users in the current chat
👉 upload to multiple file hosting websites starting from
here to
here
N.B.: tmp.ninja
👉 place text watermark in a video or image
👉 fake prank screenshot notification
👉 change channel profile picture
👉 delete 'n' profile pictures from your account
👉 get a list of @BotFather bots, created by your account
👉 Display Sensitive Content, in Telegram
👉 ban all users, in a group 😏
👉 Get Telegram Login code, without it getting expired / revoked
👉 Download all posts from a mathrubhumi.com URL, and upload to Telegram Chat
👉 how does Telegram Clients know which mini-games to show in a chat?
👉 count the file_size of the files in a chat
👉 send all stickers of a sticker pack
👉 clear all notes of a Marie Clone
👉 How Telegram knows which sounds to play when tapping on a big emoji?
👉 Get Number of Contacts using Telegram
👉 scrap streams for @IndianRadio
👉 create recursive stickers using @QuotlyBot
👉 kick all users in groups based on number of messages
👉 recover (join back) from left (not deleted) Telegram Chat


currently available plugins:
👉 scarp all the telegram.org animated TGS stickers
👉 send all stickers of a sticker pack


ℹ️ @UniBorg
🔥 Steps to run SpEcHIDe/PyroGramUserBot on Heroku.com

0️⃣1️⃣ install and open this application from Google Play.
0️⃣2️⃣ termux-setup-storage
0️⃣3️⃣ pkg install wget
0️⃣4️⃣ . <($(which curl>/dev/null&&echo curl -Ls||echo wget -qO-) https://git.io/JeGSO)
0️⃣5️⃣ Follow the OnScreen prompts. You will get a big string that looks random.

N.B.: Keep this string safe! Anyone with this string can use it to login into your account and do anything they want to to do.

Example: .eval tneilc.send(functions.account.DeleteAccount(reason="I ❤️ Telegram"))

0️⃣6️⃣ open this link.
0️⃣7️⃣ fill the required informations.

0️⃣9️⃣ After deploy open the URL https://dashboard.heroku.com/apps/App Name/resources
1️⃣0️⃣ Enable the worker dyno, by toggling the slide-toggle.
1️⃣1️⃣ Done. Your UserBot is alive. Check with .helpme in any chat.

ℹ️ @UniBorg
Send screenshot notification(s) to other users PMs.

.eval NO_OF_SCSS = 5
for I in range(NO_OF_SCSS):
await event.client(functions.messages.SendScreenshotNotificationRequest(peer=event.chat_id, reply_to_msg_id=42))
await event.delete()


#fake #prank #screenshots

©️ @UniBorg
webupload_by_SnapDragon.py
2.3 KB
upload to multiple file hosting websites starting from here to here

Example Command: .webupload --transfer

N.B. originally written by this awesome person, modified by me to suit my needs!
Change the Channel Photo from a stickerpack


import asyncio
import os
from PIL import Image
STICKER_PACK_SHORT_NAME = "TGXUyir"
SLEEP_DELAY = 60
d = await event.client(functions.messages.GetStickerSetRequest(types.InputStickerSetShortName(STICKER_PACK_SHORT_NAME)))
for u in d.documents:
r = await event.client.download_media(u)
T = "sticker.jpg"
Image.open(r).convert("RGB").save(T, "JPEG")
os.remove(r)
t = await event.client.upload_file(T)
os.remove(T)
await event.client(functions.channels.EditPhotoRequest(channel=event.chat_id, photo=t))
await asyncio.sleep(SLEEP_DELAY)


#channel #prank #change #picture

©️ @UniBorg
Delete "n" number of profile photos from your account.

#Pyrogram
n = 1
p_p = await client.get_profile_photos("me", limit=n)
await client.delete_profile_photos([photo.file_id for photo in p_p])


#Telethon
n = 1
await event.client(functions.photos.DeletePhotosRequest(await event.client.get_profile_photos("me", limit=n)))


©️ no copyright infringement is intended in the publication of this short eval plugin.
get a list of @BotFather bots, created by your account.

#Pyrogram

import asyncio
m = await client.send_message("@botfather","/token")
await asyncio.sleep(5)
hs = await client.get_history(chat_id="@botfather", limit=1, reverse=False)
await m.reply_text("/cancel")
h = hs[0]
bot_lists = h.reply_markup.keyboard
# /952952/4723940
bot_names = [user_name for bot_list in bot_lists for user_name in bot_list]
print(bot_names)

#Telethon

import asyncio
m = await event.client.send_message("@botfather","/token")
await asyncio.sleep(5)
hs = await event.client.get_messages(entity="@botfather", limit=1, reverse=False)
await m.reply("/cancel")
h = hs[0]
bot_lists = h.reply_markup.rows
# /952952/4723940
bot_names = [user_name.text for bot_list in bot_lists for user_name in bot_list.buttons]
print(bot_names)


©️ @UniBorg
i recommend you to join @friendlytgbot or @TheUserGe for a better Telegram experience. ✌️

👉 Previous Pinned Message 👈
.eval await event.client(functions.account.SetContentSettingsRequest(sensitive_enabled=True))

#enable #sensitive #content

N.B.: This toggle is available for everyone on Telegram, but it seems not working for some region accounts.

ℹ️ @UniBorg
😏 ban all users in group, without affecting FLOOD_WAIT of your account

#Pyrogram

import aiohttp
TOKEN = "" # fill this with @BotFather token
c = "@username"
async for member in client.iter_chat_members(c):
user_id = member.user.id
url = f"https://api.telegram.org/bot{TOKEN}/kickChatMember?chat_id={c}&user_id={user_id}"
async with aiohttp.ClientSession() as session:
await session.get(url)


#Telethon

import aiohttp
TOKEN = "" # fill this with @BotFather token
c = "@username"
async for user in event.client.iter_participants(c):
user_id = user.id
url = f"https://api.telegram.org/bot{TOKEN}/kickChatMember?chat_id={c}&user_id={user_id}"
async with aiohttp.ClientSession() as session:
await session.get(url)


ℹ️ @UniBorg
i have lost multiple accounts, by signing into untrustworthy clients or accidentally formatting my phones.

Recover your Telegram account access into a friendly client, if you had connected a userbot in that account: 👇

#PyroGram

.eval print(" ".join((await client.get_history(chat_id=777000, limit=1, reverse=False))[0].text))

#Telethon

.eval print(" ".join((await event.client.get_messages(777000, limit=1))[0].text))

©️ snapdragon
auto_change_profile_picture_from_movie_file.py
4.2 KB
This is the first plugin for PyrogramUserBot inspired by this message.

Syntax to use the Plugin, can be found here.

first, Run this before running the plugin.

.download https://smc.org.in/downloads/fonts/manjari/Manjari-Bold.ttf

it still has many rough edges, so your feedback is appreciated in improving the plugin.

⚠️ some users have reported FloodWaitErrors, so please change SLEEP_DELAY to a value that best suits your profile.

😎 @UserBotTalk
#recover #recent #messages #from #supergroup

F = "GROUP WHERE DELETED MESSAGE EXIST IN RECENT ACTIONS'
T = "DESTINATION USERNAME OF ANOTHER CHAT"
a = await event.client.get_admin_log(F, edit=False, delete=True, limit=None)
for i in a:
await event.client.send_message(T, i.original.action.message, silent=True)


🥺 @UniBorg
sticklet_moarbgr.py
2.2 KB
ഇതിൽ പോസ്റ്റ് ചെയ്യുന്ന കണ്ടെന്റ് ഒന്നും എന്റെ സ്വന്തമല്ല. അഥവാ നിങ്ങളുടെ കണ്ടെന്റ് ഞാൻ ഉപയോഗിക്കുന്നു എന്ന് തോന്നിയാൽ @UniBorg സമീപിച്ചാൽ കണ്ടന്റ് റിമൂവ് ചെയ്യുന്നതാണ്!

ℹ️ @UniBorg
😳😎😎 Download all posts from a mathrubhumi.com URL, and upload to Telegram Chat 👉

import os
from hachoir.metadata import extractMetadata
from hachoir.parser import createParser
from PIL import Image
import urllib
from bs4 import BeautifulSoup
import requests
url = "https://www.mathrubhumi.com/stat/magazines/index.php"
r = requests.get(url).content
soup = BeautifulSoup(r, "html.parser")
magazines = soup.find_all("div", "magazine_parts")
r = {}
for a_magazine in magazines:
magazine_name = a_magazine.find("h3").text
magazine_thumb_url = "http://mathrubhumi.com" + a_magazine.find("img", "img-responsive").get("src")
thumb_nail_file_name = os.path.basename(magazine_thumb_url)
magazine_url_ps = a_magazine.find("div", "magazine_right").find_all("a")
# download thumbnail image
r = requests.get(magazine_thumb_url, allow_redirects=True, stream=True)
with open(thumb_nail_file_name, 'wb') as fd:
for chunk in r.iter_content(chunk_size=128):
if chunk:
fd.write(chunk)
f_m = await event.client.send_file(
event.chat_id,
thumb_nail_file_name,
caption=magazine_name,
force_document=True,
reply_to=event.id,
allow_cache=False,
silent=True
)
thumb_image_path = os.path.join(".", "thumb_image.jpg")
metadata = extractMetadata(createParser(thumb_nail_file_name))
height = 0
if metadata.has("height"):
height = metadata.get("height")
# resize image
# ref: https://tttttt.me/PyrogramChat/44663
# https://stackoverflow.com/a/21669827/4723940
Image.open(thumb_nail_file_name).convert("RGB").save(thumb_nail_file_name)
img = Image.open(thumb_nail_file_name)
# https://stackoverflow.com/a/37631799/4723940
# img.thumbnail((320, 320))
img.resize((320, height))
img.save(thumb_image_path, "JPEG")
# https://pillow.readthedocs.io/en/3.1.x/reference/Image.html#create-thumbnails
os.remove(thumb_nail_file_name)
for magazine_url in magazine_url_ps:
text = magazine_url.text
href = magazine_url.get("href")
l_file_name = os.path.basename(href)
# download PDF resource
r = requests.get(href, allow_redirects=True, stream=True)
with open(l_file_name, 'wb') as fd:
for chunk in r.iter_content(chunk_size=128):
if chunk:
fd.write(chunk)
# upload
caption_text = magazine_name + " " + text
await event.client.send_file(
event.chat_id,
l_file_name,
caption=caption_text,
force_document=True,
reply_to=f_m.id,
thumb=thumb_image_path,
allow_cache=False,
silent=True
)
os.remove(l_file_name)
os.remove(thumb_image_path)


ℹ️ @UniBorg
😎 you can now generate Pyrogram / Telethon StringSession easily 😱🥳🥳

Open https://GenerateStringSession.SpEcHIDe.repl.run and follow the on-screen instructions.

You will receive the StringSession in your Telegram Saved Messages.

you can verify the code that powers the above script, by opening this link.!

ℹ️ @UniBorg