Skip to content
This repository has been archived by the owner on Feb 5, 2024. It is now read-only.

Commit

Permalink
Added Usage of Video Player
Browse files Browse the repository at this point in the history
  • Loading branch information
iniridwanul committed Dec 17, 2023
1 parent a7186ef commit b611587
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
7 changes: 4 additions & 3 deletions crowgram/core/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,12 @@
],
[
Button.inline("Play", b'play'),
Button.inline("Pause", b'pause'),
Button.inline("Resume", b'resume')
Button.inline("vPlay", b'vplay'),
Button.inline("Pause", b'pause')
],
[
Button.inline("End", b'end'),
Button.inline("Resume", b'resume'),
Button.inline("End", b'end')
],
[
Button.inline("Main Menu", b'main_menu')
Expand Down
2 changes: 2 additions & 0 deletions crowgram/plugins/misc/help.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,8 @@ async def help_response(event):
await event.edit(utils.information.authorized_usage, buttons=back_music_menu)
elif button_data == b'play':
await event.edit(utils.information.play_usage, buttons=back_music_menu)
elif button_data == b'vplay':
await event.edit(utils.information.vplay_usage, buttons=back_music_menu)
elif button_data == b'pause':
await event.edit(utils.information.pause_usage, buttons=back_music_menu)
elif button_data == b'resume':
Expand Down
2 changes: 2 additions & 0 deletions crowgram/utils/information.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@

play_usage = "🔌 Plugin Name: Play\n\n📖 Description: It is possible to listen to music from YouTube within a Telegram voice call, and it is possible to play music using the name of the favorite song or YouTube video link in a Telegram voice call.\n\n🪄 Usage: The name of the song or YouTube video link that you want to listen to should be added to the >play command.\nExample: >play song name or >play YouTube url"

vplay_usage = "🔌 Plugin Name: vPlay\n\n📖 Description: It is possible to listen to music from YouTube within a Telegram video call, and it is possible to play music using the name of the favorite song or YouTube video link in a Telegram video call.\n\n🪄 Usage: The name of the song or YouTube video link that you want to listen to should be added to the >vplay command.\nExample: >vplay song name or >vplay YouTube url"

pause_usage = "🔌 Plugin Name: Pause\n\n📖 Description: It is possible to control the music player using the voice call method of Telegram, and the music can be paused if desired.\n\n🪄 Usage: If the song needs to be paused, it can be paused only through the >pause command."

resume_usage = "🔌 Plugin Name: Resume\n\n📖 Description: It is possible to control the music player using the voice call method of Telegram, and the music can be resumed if desired.\n\n🪄 Usage: If the song needs to be resumed, it can be resumed only through the >resume command."
Expand Down

0 comments on commit b611587

Please sign in to comment.