* Ultroid 2025 Co-authored-by: New-dev0 <New-dev0@users.noreply.github.com> Co-authored-by: Amit Sharma <buddhhu@users.noreply.github.com> Co-authored-by: TechiError <techierror@users.noreply.github.com> Co-authored-by: Aditya <me@xditya.me> Co-authored-by: Arnab Paryali <Arnabxd@users.noreply.github.com> Co-authored-by: hellboi_atul <hellboi-atul@users.noreply.github.com> Co-authored-by: sppidy <sppidy@users.noreply.github.com>
35 lines
1000 B
Python
35 lines
1000 B
Python
# Ultroid - UserBot
|
||
# Copyright (C) 2021-2025 TeamUltroid
|
||
#
|
||
# 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/>.
|
||
|
||
from telethon import Button, custom
|
||
|
||
from plugins import ATRA_COL, InlinePlugin
|
||
from pyUltroid import *
|
||
from pyUltroid import _ult_cache
|
||
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
|
||
|
||
AST_PLUGINS = {}
|
||
|
||
|
||
async def setit(event, name, value):
|
||
try:
|
||
udB.set_key(name, value)
|
||
except BaseException as er:
|
||
LOGS.exception(er)
|
||
return await event.edit("`Something Went Wrong`")
|
||
|
||
|
||
def get_back_button(name):
|
||
return [Button.inline("« Bᴀᴄᴋ", data=f"{name}")]
|