Skip to content

A multipurpose telegram userbot which can be used for moderation as well as playing music in telegram vc.

Notifications You must be signed in to change notification settings

SurfyPenguin/telegram-userbot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pyrogram userbot

A simple telegram userbot made with pyrofork(mayuri) python library.

Host locally

  1. Create virtual environment and install requirements from requirements.txt.
pip install -r requirements.txt
  1. Put API_ID and API_HASH in .env. Get API ID and hash from here by creating an application if haven't already created.

  2. Follow the instructions on the screen and run the userbot.

python3 main.py

Commands

  • Prefixes can be changed in config.py
  • ? -> Admin commands
  • ! -> Music commands

Prefix: ?

  • /purge - Send ?purge while replying to a message.
  • /info - Send ?info while replying to a message, or mentioning username ?info <username or id>.
  • /spurge - Same as ?purge except silent purge will not send number of deleted messages in chat.
  • /ping - Pings the chat in which ?ping is sent.
  • /pingdc - ?pingdc Pings all the DCs (Data Centers) mentioned in pyrofork (mayuri).
  • /alive - ?alive shows basic information like memory usage and uptime.
  • /addfed - Adds the current chat into the fed list in which ?fban is to be sent.
  • /rmfed - Removes the current chat from the fed list.
  • /fban - ?fban <username or id> <reason> will send /fban with the given reason in all the chats in fed list.
  • /ban - Either send the command by replying to a message or mentioning username. ?ban <username or id>.
  • /unban - Same usage as ?ban, except this command unbans the user.
  • /promote - Either send the command by replying to a message or mentioning username. ?promote <username or id>.
  • /demote - Either send the command by replying to a message or mentioning username. ?demote <username or id>.

Prefix: !

  • /play - !play <yt or yt-music link> will start playing a song or play song replacing the current song.
  • /add - !add <yt or yt-music link> will add a song to the queue.
  • /mute - Mutes the music in voice chat.
  • /unmute - Unmutes the music in voice chat.
  • /pause - Pauses the music in voice chat.
  • /resume - Resume the music in voice chat.
  • /leave - !leave will forcefully leave the voice chat and queue will be cleared.

Known Issues

Database locked : Common error faced when using the music commands.

No Progress

I made this mini project to learn python as my first language. I no longer use telegram, so the purpose of this project is over.

About

A multipurpose telegram userbot which can be used for moderation as well as playing music in telegram vc.

Resources

Stars

Watchers

Forks

Languages