Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
Aadhi000 authored Apr 14, 2022
1 parent 9208644 commit d4e89ef
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions plugins/modules/carbon.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
from pyrogram import filters
from aiohttp import ClientSession
from pyrogram import Client as bot
from plugins.function import make_carbon
from pyrogram.types import InlineKeyboardButton, InlineKeyboardMarkup
aiohttpsession = ClientSession()

C = "**𝙼𝙰𝙳𝙴 π™±πšˆ [π™°π™Ήπ™°πš‡](https://t.me/Devil0Bot_Bot)**"
F = InlineKeyboardMarkup(
[[
InlineKeyboardButton("πš„π™Ώπ™³π™°πšƒπ™΄πš‰ 𝙲𝙷𝙰𝙽𝙽𝙴𝙻", url="https://t.me/OpusTechz")
]]
)




@bot.on_message(filters.command("carbon"))
async def carbon_func(_, message):
if not message.reply_to_message:
return await message.reply_text(
"**πšπ™΄π™Ώπ™»πšˆ πšƒπ™Ύ π™°π™½πšˆ πšƒπ™΄πš‡πšƒ π™Όπ™΄πš‚πš‚π™°π™Άπ™΄ πšƒπ™Ύ 𝙼𝙰𝙺𝙴 π™²π™°πšπ™±π™Ύπ™½.**"
)
if not message.reply_to_message.text:
return await message.reply_text(
"**πšπ™΄π™Ώπ™»πšˆ πšƒπ™Ύ π™°π™½πšˆ πšƒπ™΄πš‡πšƒ π™Όπ™΄πš‚πš‚π™°π™Άπ™΄ πšƒπ™Ύ 𝙼𝙰𝙺𝙴 π™²π™°πšπ™±π™Ύπ™½.**"
)
user_id = message.from_user.id
m = await message.reply_text("**π™²πšπ™΄π™°πšƒπ™Έπ™½π™Ά π™²π™°πšπ™±π™Ύπ™½...**")
carbon = await make_carbon(message.reply_to_message.text)
await m.edit("**πš„π™Ώπ™»π™Ύπ™°π™³π™Έπ™½π™Ά π™²π™°πšπ™±π™Ύπ™½...**")
await message.reply_photo(
photo=carbon,
caption=C,
reply_markup=F)
await m.delete()
carbon.close()

0 comments on commit d4e89ef

Please sign in to comment.