Skip to content

AFzOfficial/pyself

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PySelf Telegram Bot

Table of Contents

  1. Introduction
  2. Commands
  3. Profile Updater
  4. Dependencies
  5. How to Run
  6. Contact

Introduction

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.

Commands

Help

Use the command .help to get a list of available commands.

Example:

.help

Ping

Check the bot's online status and server usage.

Example:

.ping

Info

Retrieve information about a user by replying to their message.

Example:

.info

Block

Block the user in a private chat.

Example:

.block

Profile Settings

Toggle various profile settings on or off.

Example:

.time on
.photo off
.action on
.status off

Set Photo

Set your profile photo by replying to a message containing a photo.

Example:

.setphoto

Set Font

Set the font used for profile information.

Example:

.setfont

Set Name

Set your first name by replying to a message with your desired name.

Example:

.setname

Set Bio

Set your bio by replying to a message with your desired bio.

Example:

.setbio

Save

Save a message by replying to it.

Example:

.save

Join

Join a group or channel by replying to an invite link.

Example:

.join

Leave

Leave the current group or channel.

Example:

.leave

Download

Download media (photo or video) by replying to the message containing it.

Example:

.d

Profile Updater

The bot includes a profile updater that runs periodically to update profile information.

Dependencies

  • Pyrogram
  • Aiocron
  • Psutil

How to Run

  1. Clone the project:
git clone https://github.com/AFzOfficial/pyself.git
cd pyself
  1. Setup env:
python3 -m venv .venv
source .venv/bin/activate
  1. Install the required dependencies:
pip install -r requirements.txt
  1. Configure your bot by editing the config.ini file.
cp config.ini.example config.ini
  1. Run the bot:
# start a tmux session for keep bot running
tmux

python3 main.py

Releases

No releases published

Packages

No packages published

Languages