Skip to content

Commit

Permalink
Fix: Errors with imports
Browse files Browse the repository at this point in the history
Signed-off-by: baalajimaestro <[email protected]>
  • Loading branch information
baalajimaestro committed Dec 29, 2018
1 parent 2a6ccb1 commit 5dc206b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
9 changes: 2 additions & 7 deletions userbot/modules/purge.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,13 +108,8 @@ async def selfdestruct(e):
+ " seconds`"
)
await e.delete()
await bot.send_message(e.chat_id, text)
x=await bot.send_message(e.chat_id, text)
time.sleep(counter)
i = 1
async for message in bot.iter_messages(e.chat_id, from_user="me"):
if i > 1:
break
i = i + 1
await message.delete()
await x.delete()
if LOGGER:
await bot.send_message(LOGGER_GROUP, "sd query done successfully")
2 changes: 1 addition & 1 deletion userbot/modules/scrapers.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
from telethon import TelegramClient, events
from userbot import bot, LOGGER, LOGGER_GROUP
from gtts import gTTS
import os
import os,time
from googletrans import Translator

langi = "en"
Expand Down

0 comments on commit 5dc206b

Please sign in to comment.