Skip to content

Update xD.py #4

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 12 additions & 12 deletions xD.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,25 +32,25 @@ async def check(ch, event, xD):
async def startkaru(event):
but = [[Button.inline('Groups.', data="link")]]
if event.is_private:
return await event.reply(f'**Hey** **[{event.sender.first_name}](tg://user?id={event.sender.id})!**\n**Nice to see you here..!\nSorry but i only works in zeda network..:)\n\nWill see you there!😉**', buttons=but)
return await event.reply(f'**Hey** **[{event.sender.first_name}](tg://user?id={event.sender.id})!**\n**Nice to see you here..!\nSorry but i only works in osmani network..:)\n\nWill see you there!😉**', buttons=but)
chat = [-1001363684870]
if event.chat_id in chat:
sedkk = [[Button.inline('Groups.', data="del")]]
await event.reply(f"**Hey** **[{event.sender.first_name}](tg://user?id={event.sender.id})!**\n**I'm Zeda assistant who works for zeda network...!**", buttons=sedkk)
await event.reply(f"**Hey** **[{event.sender.first_name}](tg://user?id={event.sender.id})!**\n**I'm Osmani assistant who works for osmani network...!**", buttons=sedkk)
else:
await alain.delete_dialog(event.chat_id)

@alain.on(events.callbackquery.CallbackQuery(data="link"))
async def links(event):
tf = [[Button.url('✘ Support ✘', 't.me/ZedaSupport'), Button.url('✘ Spam ✘', 't.me/ZedaSpam')]]
tf += [[Button.url('✘ Updates ✘', 't.me/ZedaUpdates'), Button.inline('Back', data='pback')]]
await event.edit('**Here are all the links of zeda network...!**', buttons=tf)
tf = [[Button.url('✘ Support ✘', 't.me/osmanigroupbot'), Button.url('✘ Owner ✘', 't.me/ribajosmani')]]
tf += [[Button.url('✘ Updates ✘', 't.me/teamosmani'), Button.inline('Back', data='pback')]]
await event.edit('**Here are all the links of osmani network...!**', buttons=tf)

@alain.on(events.callbackquery.CallbackQuery(data="del"))
async def links(event):
tf = [[Button.url('✘ Support ✘', 't.me/ZedaSupport'), Button.url('✘ Spam ✘', 't.me/ZedaSpam')]]
tf += [[Button.url('✘ Updates ✘', 't.me/ZedaUpdates'), Button.inline('Close', data='delll')]]
await event.edit('**Here are all the links of zeda network...!**', buttons=tf)
tf = [[Button.url('✘ Support ✘', 't.me/osmanigroupbot'), Button.url('✘ Owner ✘', 't.me/ribajosmani')]]
tf += [[Button.url('✘ Updates ✘', 't.me/teamosmani'), Button.inline('Close', data='delll')]]
await event.edit('**Here are all the links of osmani network...!**', buttons=tf)


@alain.on(events.callbackquery.CallbackQuery(data="delll"))
Expand All @@ -60,7 +60,7 @@ async def links(event):
@alain.on(events.callbackquery.CallbackQuery(data="pback"))
async def pbak(event):
but = [[Button.inline('Groups.', data="link")]]
await event.edit(f'**Hey** **[{event.sender.first_name}](tg://user?id={event.sender.id})!**\n**Nice to see you here..!\nSorry but i only works in zeda network..:)\n\nWill see you there!😉**', buttons=but)
await event.edit(f'**Hey** **[{event.sender.first_name}](tg://user?id={event.sender.id})!**\n**Nice to see you here..!\nSorry but i only works in osmani network..:)\n\nWill see you there!😉**', buttons=but)


from telethon import events
Expand Down Expand Up @@ -151,7 +151,7 @@ async def _(event):
tbot = bot


UPSTREAM_REPO_URL = "https://github.com/TeamZeda/Assistant.git"
UPSTREAM_REPO_URL = "https://github.com/Ribaj"
HEROKU_APP_NAME = None
HEROKU_API_KEY = None

Expand Down Expand Up @@ -249,7 +249,7 @@ async def upstream(ups):

if conf != "now" and not force_update:
changelog_str = (
f"**New update available available 🇮🇳\n\n{ac_br}\n\nChangelog:**\n`{changelog}`"
f"**New update available available 🇸🇴\n\n{ac_br}\n\nChangelog:**\n`{changelog}`"
)
if len(changelog_str) > 4096:
await lol.edit("`Changelog is too big, view the file to see it.`")
Expand All @@ -264,7 +264,7 @@ async def upstream(ups):
remove("output.txt")
else:
await lol.edit(changelog_str)
await ups.respond("**Do `/update now` **to update your bot 🇮🇳**")
await ups.respond("**Do `/update now` **to update your bot 🇸🇴**")
return

if force_update:
Expand Down