Ultroid v0.7 Updates

Date: 30-8-2022
Co-Authored-By: Aditya <me@xditya.me>
Co-Authored-By: Amit Sharma <48654350+buddhhu@users.noreply.github.com>
Co-Authored-By: CyrusXD <79554993+Ashutosh1478@users.noreply.github.com>
Co-Authored-By: Danish <danish@ultroid.tech>
Co-Authored-By: TechiError <error@notavailable.live>
Co-Authored-By: Arnab Paryali <arnabxd@pm.me>
This commit is contained in:
Devesh Pal
2022-08-30 16:05:58 +05:30
parent 60c6df59e4
commit d8bd901072
199 changed files with 15773 additions and 4106 deletions

View File

@@ -4,22 +4,18 @@
# This file is a part of < https://github.com/TeamUltroid/Ultroid/ >
# PLease read the GNU Affero General Public License in
# <https://www.github.com/TeamUltroid/Ultroid/blob/main/LICENSE/>.
"""
✘ Commands Available -
• `{i}button <text with button format`
create button u can reply to pic also
from . import get_help
__doc__ = get_help("help_button")
Format:- `{i}button Hey There! @UseUltroid 😎.
[Ultroid | t.me/theUltroid][Support | t.me/ultroidsupportchat | same]
[TeamUltroid | t.me/TeamUltroid]`
"""
import os
from pyUltroid.functions.tools import create_tl_btn, get_msg_button
from telegraph import upload_file as uf
from telethon.utils import pack_bot_file_id
from pyUltroid.fns.tools import create_tl_btn, get_msg_button
from . import HNDLR, get_string, mediainfo, ultroid_cmd
from ._inline import something
@@ -36,14 +32,14 @@ async def butt(event):
if wut and wut.startswith(("pic", "gif")):
dl = await wt.download_media()
variable = uf(dl)
media = "https://telegra.ph" + variable[0]
media = f"https://graph.org{variable[0]}"
elif wut == "video":
if wt.media.document.size > 8 * 1000 * 1000:
return await event.eor(get_string("com_4"), time=5)
dl = await wt.download_media()
variable = uf(dl)
os.remove(dl)
media = "https://telegra.ph" + variable[0]
media = f"https://graph.org{variable[0]}"
else:
media = pack_bot_file_id(wt.media)
try: