All Projects → athphane → userbot

athphane / userbot

Licence: GPL-3.0 License
Telegram Userbot built with Pyrogram

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to userbot

KennedyXMusic
A Bot For Playing Music In VCG Telegram!
Stars: ✭ 29 (-69.15%)
Mutual labels:  telegram-bot, pyrogram
vcplayerbot
Play songs directly in telegram voice chats.
Stars: ✭ 48 (-48.94%)
Mutual labels:  telegram-bot, pyrogram
scp-079-pm
Everyone can have their own private chat bot
Stars: ✭ 25 (-73.4%)
Mutual labels:  telegram-bot, pyrogram
tgmusicbot
Telegram bot for downloading audio from YouTube, SoundCloud & MixCloud.
Stars: ✭ 66 (-29.79%)
Mutual labels:  telegram-bot, pyrogram
Google-Search-Bot
A google search telegram bot.
Stars: ✭ 32 (-65.96%)
Mutual labels:  telegram-bot, pyrogram
Remove-BG-Bot
A media background remover telegram bot with pyrogram framework.
Stars: ✭ 28 (-70.21%)
Mutual labels:  telegram-bot, pyrogram
File-Sharing-Bot
Telegram Bot to store Posts and Documents and it can Access by Special Links.
Stars: ✭ 867 (+822.34%)
Mutual labels:  telegram-bot, pyrogram
Telegram Vc Bot
A bot that can play music on telegram group's voice chat.
Stars: ✭ 94 (+0%)
Mutual labels:  telegram-bot, pyrogram
mirror-leech-telegram-bot
Aria/qBittorrent Telegram mirror/leech bot
Stars: ✭ 1,289 (+1271.28%)
Mutual labels:  telegram-bot, pyrogram
Feedback-bot
In Short This is An Personalized Livegram Bot Made Using Python.. Follow Me @HeimanPictures & Star This Repo
Stars: ✭ 23 (-75.53%)
Mutual labels:  telegram-bot, pyrogram
Google Translater V2
Google Translater v2
Stars: ✭ 30 (-68.09%)
Mutual labels:  telegram-bot, pyrogram
MwK-Musics
A Telegram Bot to Play Audio in Voice Chats With Youtube and Deezer support. Supports Live streaming from youtube Supports Mega Radio Fm Streamings
Stars: ✭ 38 (-59.57%)
Mutual labels:  telegram-bot, pyrogram
john feedbackbot
A simple feedback bot with message response support
Stars: ✭ 22 (-76.6%)
Mutual labels:  telegram-bot, pyrogram
Stella
Stella - the first telegram group management bot to be built in Pyrogram.
Stars: ✭ 25 (-73.4%)
Mutual labels:  telegram-bot, pyrogram
Anjani
🤖 Telegram group management bot with spam protection
Stars: ✭ 45 (-52.13%)
Mutual labels:  telegram-bot, pyrogram
GroupMusicPlayerBot
Advanced telegram group music play bot!
Stars: ✭ 32 (-65.96%)
Mutual labels:  telegram-bot, pyrogram
Pyro-FileStreamBot
Stream Telegram files to web
Stars: ✭ 38 (-59.57%)
Mutual labels:  telegram-bot, pyrogram
LyricsPyRobot
A Telegram bot for searching lyrics.
Stars: ✭ 29 (-69.15%)
Mutual labels:  telegram-bot, pyrogram
Watermark-Bot
A Telegram Video Watermark Adder Bot in Pyrogram by @AbirHasan2005
Stars: ✭ 82 (-12.77%)
Mutual labels:  telegram-bot, pyrogram
Click-Counter-Bot
A telegram bot module for how to count total clicks on button.
Stars: ✭ 23 (-75.53%)
Mutual labels:  telegram-bot, pyrogram

Pyrogram Userbot

Python Version Repo Size Commit Activity Codacy Badge HitCount Contributors Last Commit Issues Pull Requests StyleCI License

A Telegram Userbot based on Pyrogram

This repository contains the source code of a Telegram Userbot and the instructions for running a copy yourself. Beside its main purpose, the bot is featuring Pyrogram Asyncio and Smart Plugins; feel free to explore the source code to learn more about these topics.

I assume you will read this whole README.md file before continuing.

Development in progress.

Requirements

You're gonna need to get the following programs and services either installed on your server or signed up for. You must do all. It is a cardinal sin if you don't.

  • virtualenv installed so that the packages don't interfere with other system packages.

  • MongoDB on your server or a free server from MongoDB Atlas. (I recommend Atlas as I used it during development with no issues.)

  • carbon-now-cli on your server too generate code images for the carbon.py module. I use this CLI tool cause I don't know and couldn't get selenium and chromedriver to work nicely on my server/code. I'll be nice and even give you the command to install this. I assume you already have NPM installed.

    Windows: npm install -g carbon-now-cli
    Linux: sudo npm install -g carbon-now-cli --unsafe-perm=true --allow-root
    MacOS: I assume almost the same as linux ¯\_(ツ)_/¯
    

Installation and Deployment

The way I deploy

git clone https://github.com/athphane/userbot.git
cd userbot
virtualenv venv
source venv/bin/activate
pip install -r requirements.txt
python -m userbot

Spotify integration

To get the Spotify commands working on the Userbot, you need to get a CLIENT_ID and CLIENT_SECRET form the Spotify Developer Portal and add them into your userbot.ini file.

On the Spotify developer portal, make sure to set your application Redirect URI to 'http://localhost:8888/callback'.

Now is a good time Then go ahead and run the command python spotify.py in the projects root directory.

This will create a file called .cache-yourusername. You need to transfer this file to the project root of the server that will be running your userbot. This is a one time setup.

Developing

To add extra modules to the bot, simply add the code into userbot/plugins. Each file that is added to the plugins directory should have the following code at a minimum.

from pyrogram import Message, Filters

from userbot import UserBot

@UserBot.on_message(Filters.command('sample', ['.']))
async def module_name(bot: UserBot, message: Message):
    await message.edit(
        "This is a sample module"
    )

This example is only for Pyrogram on_message events.

Known issues

Credits, and Thanks to


Made with love from the Maldives

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].