File size: 1,956 Bytes
056f521 c53e0d0 056f521 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 |
# SOURCE https://github.com/Team-ProjectCodeX
# CREATED BY https://t.me/O_okarma
# PROVIDED BY https://t.me/ProjectCodeX
# <============================================== IMPORTS =========================================================>
import random
from sys import version_info
import pyrogram
import telegram
import telethon
from pyrogram import filters
from pyrogram.types import InlineKeyboardMarkup, Message
from Infamous.karma import ALIVE_ANIMATION, ALIVE_BTN
from Mikobot import BOT_NAME, app
# <=======================================================================================================>
# <================================================ FUNCTION =======================================================>
@app.on_message(filters.command("alive"))
async def alive(_, message: Message):
library_versions = {
"PTB": telegram.__version__,
"TELETHON": telethon.__version__,
"PYROGRAM": pyrogram.__version__,
}
library_versions_text = "\n".join(
[f"β² **{key}:** `{value}`" for key, value in library_versions.items()]
)
caption = f"""**HEY, I AM {BOT_NAME}**
ββββββ πβΏπ ββββββ
βͺ **CREATOR:** [πΊπ°π
πΌπ°](https://t.me/O_oKarma)
{library_versions_text}
β² **PYTHON:** `{version_info[0]}.{version_info[1]}.{version_info[2]}`
β² **BOT VERSION:** `2.1 Rx`
ββββββ πβΏπ ββββββ"""
await message.reply_animation(
random.choice(ALIVE_ANIMATION),
caption=caption,
reply_markup=InlineKeyboardMarkup(ALIVE_BTN),
)
# <=======================================================================================================>
# <================================================ NAME =======================================================>
__mod_name__ = "ALIVE"
# <================================================ END =======================================================>
|