Co-authored-by: Amit Sharma <48654350+buddhhu@users.noreply.github.com> Co-authored-by: Aditya <xditya@ultroid.tech> Co-authored-by: Kaif <88398455+kaif-00z@users.noreply.github.com> Co-authored-by: Aditya <me@xditya.me> Co-authored-by: 1Danish-00 <danish@ultroid.tech> Co-authored-by: smartman_ru <bblkovo@gmail.com>
34 lines
975 B
Python
34 lines
975 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._misc import owner_and_sudos
|
||
from pyUltroid._misc._assistant import asst_cmd, callback, in_pattern
|
||
from pyUltroid.functions.helper import *
|
||
from pyUltroid.functions.tools import get_stored_file
|
||
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}")]
|