Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ $ python -m lib

## Easy way deploy with
[![Deploy+on+Railway](https://railway.app/button.svg)](https://railway.app/new/template?template=https://github.com/FeriEXP/VideoStream/&envs=API_ID,API_HASH,SESSION_NAME,BOT_TOKEN,SUDO_USERS,USERNAME_BOT)
<p align="center"><a href="https://heroku.com/deploy?template=https://github.com/FeriEXP/VideoStream"> <img src="https://img.shields.io/badge/Deploy%20To%20Heroku-black?style=for-the-badge&logo=heroku" width="220" height="38.45"/></a></p>
<p align="center"><a href="https://heroku.com/deploy?template=https://github.com/FeriEXP/VideoStream"> <img src="https://img.shields.io/badge/Deploy%20To%20Heroku-red?style=for-the-badge&logo=heroku" width="220" height="38.45"/></a></p>


# Credit
Expand Down
58 changes: 54 additions & 4 deletions lib/driver/callback.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,35 @@

@Client.on_callback_query(filters.regex("cbstart"))
async def cbstart(_, query: CallbackQuery):
await query.edit_message_text(f"""👋🏻 **Hi [{query.message.chat.first_name}](tg://user?id={query.message.chat.id}) !**
**I'm online and ready for playing video.**
**For more information, hit the » 📚 `Command` bellow**""",
await query.edit_message_text(f"""✨ **Hello [{query.message.chat.first_name}](tg://user?id={query.message.chat.id}) !**

❍ I'm online and ready for playing video on your Group video chat.

❍ To see all my **feature list and the information**, Click on the » ❓ **Basic Guide button** below""",
reply_markup=InlineKeyboardMarkup(
[
[
InlineKeyboardButton(
"❓ Basic Guide", callback_data="cbhelp"
)
]
]
),
)


@Client.on_callback_query(filters.regex("cbhome"))
async def cbstart(_, query: CallbackQuery):
await query.edit_message_text(f"""✨ **Welcome [{query.message.chat.first_name}](tg://user?id={query.message.chat.id}) !**

❍ I'm online and ready for playing video on your Group video chat.

❍ To see all my **feature list and the information**, Click on the » 📚 **Commands button** below""",
reply_markup=InlineKeyboardMarkup(
[
[
InlineKeyboardButton(
"📚 Command", callback_data="cbhelp"
"📚 Commands", callback_data="cbhelp"
)
]
]
Expand Down Expand Up @@ -48,6 +69,35 @@ async def cbhelp(_, query: CallbackQuery):
),
)

@Client.on_callback_query(filters.regex("cbcmds"))
async def cbstart(_, query: CallbackQuery):
await query.edit_message_text(f"""It os the help menu for streaming!
You can find how to use me on the button bellow.""",
reply_markup=InlineKeyboardMarkup(
[
[
InlineKeyboardButton(
"Help Play", callback_data="cbplay"),
InlineKeyboardButton(
"Help Pause​​", callback_data="cbpause"
),
],
[
InlineKeyboardButton(
"Help Resume", callback_data="cbresume"),
InlineKeyboardButton(
"Help Stop", callback_data="cbstop"
)
],
[
InlineKeyboardButton(
"Home", callback_data="cbhome"
)
]
]
),
)


@Client.on_callback_query(filters.regex("cbplay"))
async def cbplay(_, query: CallbackQuery):
Expand Down