UniBorg
1.32K 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
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://t.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
Forwarded from The UseLess Bot
new Pull ReQuest #66 by penn5
[CRITICAL] prevent unauthorized access
UniBorg
new Pull ReQuest #66 by penn5 [CRITICAL] prevent unauthorized access
PLEASE UPDATE YOUR FORKS.

I DON'T CLAIM ANY RESPONSIBILITY FOR ANY DAMAGES CAUSED BY THE USE OF THIS SOFTWARE.

thanks
🤔 how does the Telegram know which emojies to display similar to @AnimatedEmojies ? 🧐🧐🤷‍♂

from telethon.tl.functions.messages import GetStickerSetRequest
from telethon.tl.functions.help import GetAppConfigRequest
from telethon.tl.types import InputStickerSetDice

config = await event.client(GetAppConfigRequest())
emojies = next((x for x in config.value if x.key == 'emojies_send_dice'))

sets = []
for emoji in emojies.value.value:
sticker_set = await event.client(GetStickerSetRequest(InputStickerSetDice(emoji.value)))
sets.append(sticker_set.set.short_name)

await event.reply("👉 " + "\n\n👉 ".join(map(lambda x: f"https://t.me/addstickers/{x}", sets)))


✌️ @UniBorg
is your @UniBorg application getting suspended on Heroku,?
Anonymous Poll
27%
no
43%
yes
30%
I don't use Heroku.
now, that I have finally managed to remove the StringSession and still working on Heroku, more cool things, are on it's way.

Thanks to these awesome people who inspired me to keep this FORK still updated..!

ALL PREVIOUS INSTRUCTIONS ARE OUT-DATED.

🕊 @UniBorg
#Pyrogram #EVAL Script to Get all telegram.org stickers

import aiohttp
import aiofiles
import os
from bs4 import BeautifulSoup
url = "https://telegram.org"
async with aiohttp.ClientSession() as session:
ury = await session.get(url)
yru = await ury.text()
soup = BeautifulSoup(yru, "html.parser")
y_tg_div = soup.find("div", {"class": "tl_main_cards"})
card_div_s = y_tg_div.find_all("source")
ilopker = 1
for card_div in card_div_s:
crs_tes = url + card_div.get("srcset")
lacol_fn = str(ilopker) + ".tgs"
async with session.get(
crs_tes
) as resp:
f_p = await aiofiles.open(lacol_fn, mode="wb")
await f_p.write(await resp.read())
await f_p.close()
await message.reply_document(
document=lacol_fn,
caption=str(ilopker)
)
os.remove(lacol_fn)
ilopker = ilopker + 1

©️ @UniBorg
This media is not supported in your browser
VIEW IN TELEGRAM
Google Photos Uploader in @UniBorg

1️⃣ Open https://da.gd/PUniTBorg
2️⃣ Click on the "Enable the Google Photos Library API button"
3️⃣ Follow the OnScreen Instructions.

https://t.me/c/1215241723/118
https://t.me/c/1215241723/119
https://t.me/c/1215241723/120

4️⃣ Fill the "G_PHOTOS_CLIENT_ID" and "G_PHOTOS_CLIENT_SECRET" variables.
5️⃣ open your "PRIVATE_GROUP_BOT_API_ID" and send ".gphoto setup"
6️⃣ you will get a link, Open the link and reply the code within 60 seconds.
7️⃣ Add the "G_PHOTOS_AUTH_TOKEN_ID" variable.
8️⃣ now, you can use ".gphoto upload" as reply to any media.


😎 if you have any issues, please reply to this message.

ℹ️ @UniBorg
👉 if your Telegram account is getting banned, please READ THIS, this, and this, before you try to deploy your own @UniBorg 👈
do you want YouTube uploading plugin? ,

similar to 👉 https://t.me/odbots/86 👈
Anonymous Poll
30%
no
70%
yes
what 🤔 are FREE / CHEAP alternatives of Heroku 🚶‍♂🚶‍♂?

😑 Please don't say VPS 🙏🙏