forked from CyniteOfficial/Auto-Filter
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
37 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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() |