Co-authored-by: AndrewLaneX <AndrewLaneX@users.noreply.github.com> Co-authored-by: Aditya <me@xditya.me> Co-authored-by: Danish <danish@ultroid.tech> Co-authored-by: buddhhu <buddhuu0@users.noreply.github.com> Co-authored-by: sppidy <sppidy@users.noreply.github.com> Co-authored-by: Arnab Paryali <Arnabxd@users.noreply.github.com> Co-authored-by: divkix <divkix@users.noreply.github.com> Co-authored-by: hellboi_atul <hellboi-atul@users.noreply.github.com> Co-authored-by: Programming Error <error@notavailable.live> Co-authored-by: New-dev0 <New-dev0@notavailable.live>
29 lines
769 B
Python
29 lines
769 B
Python
# Ultroid - UserBot
|
||
# Copyright (C) 2020 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.dB.database import Var
|
||
from pyUltroid.functions.all import *
|
||
from telethon import Button, custom
|
||
|
||
from strings import get_languages, get_string
|
||
|
||
OWNER_NAME = ultroid_bot.me.first_name
|
||
OWNER_ID = ultroid_bot.me.id
|
||
|
||
|
||
async def setit(event, name, value):
|
||
try:
|
||
udB.set(name, value)
|
||
except BaseException:
|
||
return await event.edit("`Something Went Wrong`")
|
||
|
||
|
||
def get_back_button(name):
|
||
button = [Button.inline("« Bᴀᴄᴋ", data=f"{name}")]
|
||
return button
|