Skip to content

Commit

Permalink
Update carbon.py
Browse files Browse the repository at this point in the history
  • Loading branch information
TechnoAyanOfficial authored Mar 28, 2020
1 parent 65d5e00 commit c926e19
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions userbot/plugins/carbon.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ async def carbon_api(e):

code = quote_plus(pcode) # Converting to urlencoded

await e.edit("`Meking Carbon...\n25%`")
await e.edit("`⬜️⬜️⬜️⬜️`")

url = CARBON.format(code=code, lang=CARBONLANG)

Expand All @@ -118,7 +118,7 @@ async def carbon_api(e):

driver.get(url)

await e.edit("`Be Patient...\n50%`")
await e.edit("`⬛️⬜️⬜️⬜️`")

download_path = './'

Expand All @@ -134,25 +134,25 @@ async def carbon_api(e):

driver.find_element_by_xpath("//button[contains(text(),'PNG')]").click()

await e.edit("`Processing..\n75%`")
await e.edit("`⬛️⬛️⬜️⬜️`")

# Waiting for downloading

sleep(2.5)

await e.edit("`Done Dana Done...\n100%`")
await e.edit("`⬛️⬛️⬛️⬜️`")

file = './carbon.png'

await e.edit("`Uploading..`")
await e.edit("`⬛️Done⬛️`")

await e.client.send_file(

e.chat_id,

file,

caption="<< Here's your carbon, \n Carbonised by [GujjuBot](https://www.github.com/GujjuBot)>> ",
caption="<< Here's your carbon, \n Carbonised by @TechnoAyanBoT>> ",

force_document=True,

Expand Down

0 comments on commit c926e19

Please sign in to comment.