pyself
is a Telegram bot written in Python using the Pyrogram library. This bot provides various features to manage your Telegram profile, interact with users, and perform actions at scheduled intervals.
Use the command .help
to get a list of available commands.
Example:
.help
Check the bot's online status and server usage.
Example:
.ping
Retrieve information about a user by replying to their message.
Example:
.info
Block the user in a private chat.
Example:
.block
Toggle various profile settings on or off.
Example:
.time on
.photo off
.action on
.status off
Set your profile photo by replying to a message containing a photo.
Example:
.setphoto
Set the font used for profile information.
Example:
.setfont
Set your first name by replying to a message with your desired name.
Example:
.setname
Set your bio by replying to a message with your desired bio.
Example:
.setbio
Save a message by replying to it.
Example:
.save
Join a group or channel by replying to an invite link.
Example:
.join
Leave the current group or channel.
Example:
.leave
Download media (photo or video) by replying to the message containing it.
Example:
.d
The bot includes a profile updater that runs periodically to update profile information.
- Pyrogram
- Aiocron
- Psutil
- Clone the project:
git clone https://github.com/AFzOfficial/pyself.git
cd pyself
- Setup env:
python3 -m venv .venv
source .venv/bin/activate
- Install the required dependencies:
pip install -r requirements.txt
- Configure your bot by editing the
config.ini
file.
cp config.ini.example config.ini
- Run the bot:
# start a tmux session for keep bot running
tmux
python3 main.py