Co-authored-by: Aditya <xditya@ultroid.tech> Co-authored-by: Danish <danish@ultroid.tech> Co-authored-by: Amit Sharma <48654350+buddhhu@users.noreply.github.com> Co-authored-by: TechiError <error@notavailable.live> Co-authored-by: Avish Kumar <85635883+aviskumar@users.noreply.github.com> Co-authored-by: Vɪɴᴀʏᴀᴋ Pᴀɴᴅᴇʏ <87496159+harpia-vieillot@users.noreply.github.com> Co-authored-by: Shrimadhav U K <6317196+spechide@users.noreply.github.com> Co-authored-by: Dark <darkbeamer.official@gmail.com> Co-authored-by: Muhamad Risman Aziz <62795826+mrismanaziz@users.noreply.github.com> Co-authored-by: Ashik Muhammed <84127769+MR-JINN-OF-TG@users.noreply.github.com> Co-authored-by: MMETMA <79155572+MMETMA@users.noreply.github.com> Co-authored-by: amirmehdinzri <94852182+amirmehdinzri@users.noreply.github.com>
34 lines
973 B
Python
34 lines
973 B
Python
# Ultroid - UserBot
|
||
# Copyright (C) 2021-2022 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 pyUltroid import *
|
||
from pyUltroid import _ult_cache
|
||
from pyUltroid.functions.helper import *
|
||
from pyUltroid.functions.tools import get_stored_file
|
||
from pyUltroid.misc import owner_and_sudos
|
||
from pyUltroid.misc._assistant import asst_cmd, callback, in_pattern
|
||
from telethon import Button, custom
|
||
|
||
from plugins import ATRA_COL
|
||
from strings import get_languages, get_string, language
|
||
|
||
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:
|
||
return await event.edit("`Something Went Wrong`")
|
||
|
||
|
||
def get_back_button(name):
|
||
return [Button.inline("« Bᴀᴄᴋ", data=f"{name}")]
|