Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update #14

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@

__pycache__/
.idea/
46 changes: 6 additions & 40 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,44 +1,16 @@
# Image Editor
# Image-Editor
Telegram image editor bot

<p align="center">
<a href="https://www.python.org">
<img src="http://ForTheBadge.com/images/badges/made-with-python.svg">

</a>
</p>
<p align="center">
<a href="https://github.com/TroJanzHEX/Image-Editor/stargazers">
<img src="https://img.shields.io/github/stars/TroJanzHEX/Image-Editor?style=social">

</a>

<a href="https://github.com/TroJanzHEX/Image-Editor/fork">
<img src="https://img.shields.io/github/forks/TroJanzHEX/Image-Editor?label=Fork&style=social">

</a>
</p>

[![TroJanz](https://img.shields.io/badge/TroJanzHEX-Channel-orange?style=for-the-badge&logo=telegram)](https://telegram.dog/TroJanzHEX)
ㅤㅤㅤㅤㅤㅤㅤ
[![TroJanz](https://img.shields.io/badge/TroJanzHEX-Support-red?style=flat&logo=telegram)](https://telegram.dog/TroJanzSupport) [![TroJanz](https://img.shields.io/badge/TroJanzHEX-Website-red?style=flat&logo=CodersRank)](https://TroJanzHEX.me)
ㅤㅤㅤㅤㅤㅤㅤ
[![MIT license](https://img.shields.io/badge/License-MIT-blue?style=flat)](https://github.com/TroJanzHEX/Image-Editor/blob/main/COPYING) [![Open Source](https://badges.frapsoft.com/os/v2/open-source.svg?v=103)](https://github.com/TroJanzHEX/Image-Editor)





#### An open source image editor which can manipulate an image in many ways!
#### If you need any more modes in repo or If you find out any bugs, mention in @TroJanzSupport
Forked from [TroJanzHEX/Image-Editor](https://github.com/TroJanzHEX/Image-Editor)

## Installation

### Deploy to Heroku
[![Deploy](https://www.herokucdn.com/deploy/button.svg)](https://heroku.com/deploy?template=https://github.com/TroJanzHEX/Image-Editor)
[![Deploy](https://www.herokucdn.com/deploy/button.svg)](https://heroku.com/deploy?template=https://github.com/MeysamRezazadeh/Image-Editor)

### Deploy in your vps
```sh
git clone https://github.com/TroJanzHEX/Image-Editor
git clone https://github.com/MeysamRezazadeh/Image-Editor
cd Image-Editor
pip3 install -r requirements.txt
# <Create config.py appropriately>
Expand All @@ -50,10 +22,4 @@ python3 bot.py
* TG_BOT_TOKEN - Get bot token from @BotFather
* APP_ID - From my.telegram.org (or @UseTGXBot)
* API_HASH - From my.telegram.org (or @UseTGXBot)
* RemoveBG_API - From [RemoveBG](https://www.remove.bg/b/background-removal-api)

## Credits

[![TroJanz](https://img.shields.io/badge/Stack_Overflow-FE7A16?style=for-the-badge&logo=stack-overflow&logoColor=white)](https://stackoverflow.com/)

[![TroJanz](https://img.shields.io/badge/Pyrogram%20-%23F37626.svg?&style=for-the-badge&logo=telegram&logoColor=white)](https://github.com/pyrogram/pyrogram)
* RemoveBG_API - From [RemoveBG](https://www.remove.bg/b/background-removal-api)
2 changes: 1 addition & 1 deletion bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import os

if bool(os.environ.get("WEBHOOK", False)):
from sample_config import Config
from config import Config
else:
from config import Config # pylint:disable=import-error

Expand Down
136 changes: 136 additions & 0 deletions config.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,136 @@
# By @TroJanzHEX


import os


class Config(object):
TG_BOT_TOKEN = os.environ.get("TG_BOT_TOKEN", "")

APP_ID = int(os.environ.get("APP_ID", 123456789))

API_HASH = os.environ.get("API_HASH", "")

# Get this api from https://www.remove.bg/b/background-removal-api
RemoveBG_API = os.environ.get("RemoveBG_API", "")

# Enable or disable private bot
PRIVATE = True

# Add id without @
# if PRIVATE is True only users that are in this list are allowed to use the bot
USERNAMES = ["", ]

# Add your language
LANG = "en"

# languages
# 'af': 'afrikaans',
# 'sq': 'albanian',
# 'am': 'amharic',
# 'ar': 'arabic',
# 'hy': 'armenian',
# 'az': 'azerbaijani',
# 'eu': 'basque',
# 'be': 'belarusian',
# 'bn': 'bengali',
# 'bs': 'bosnian',
# 'bg': 'bulgarian',
# 'ca': 'catalan',
# 'ceb': 'cebuano',
# 'ny': 'chichewa',
# 'zh-cn': 'chinese (simplified)',
# 'zh-tw': 'chinese (traditional)',
# 'co': 'corsican',
# 'hr': 'croatian',
# 'cs': 'czech',
# 'da': 'danish',
# 'nl': 'dutch',
# 'en': 'english',
# 'eo': 'esperanto',
# 'et': 'estonian',
# 'tl': 'filipino',
# 'fi': 'finnish',
# 'fr': 'french',
# 'fy': 'frisian',
# 'gl': 'galician',
# 'ka': 'georgian',
# 'de': 'german',
# 'el': 'greek',
# 'gu': 'gujarati',
# 'ht': 'haitian creole',
# 'ha': 'hausa',
# 'haw': 'hawaiian',
# 'iw': 'hebrew',
# 'he': 'hebrew',
# 'hi': 'hindi',
# 'hmn': 'hmong',
# 'hu': 'hungarian',
# 'is': 'icelandic',
# 'ig': 'igbo',
# 'id': 'indonesian',
# 'ga': 'irish',
# 'it': 'italian',
# 'ja': 'japanese',
# 'jw': 'javanese',
# 'kn': 'kannada',
# 'kk': 'kazakh',
# 'km': 'khmer',
# 'ko': 'korean',
# 'ku': 'kurdish (kurmanji)',
# 'ky': 'kyrgyz',
# 'lo': 'lao',
# 'la': 'latin',
# 'lv': 'latvian',
# 'lt': 'lithuanian',
# 'lb': 'luxembourgish',
# 'mk': 'macedonian',
# 'mg': 'malagasy',
# 'ms': 'malay',
# 'ml': 'malayalam',
# 'mt': 'maltese',
# 'mi': 'maori',
# 'mr': 'marathi',
# 'mn': 'mongolian',
# 'my': 'myanmar (burmese)',
# 'ne': 'nepali',
# 'no': 'norwegian',
# 'or': 'odia',
# 'ps': 'pashto',
# 'fa': 'persian',
# 'pl': 'polish',
# 'pt': 'portuguese',
# 'pa': 'punjabi',
# 'ro': 'romanian',
# 'ru': 'russian',
# 'sm': 'samoan',
# 'gd': 'scots gaelic',
# 'sr': 'serbian',
# 'st': 'sesotho',
# 'sn': 'shona',
# 'sd': 'sindhi',
# 'si': 'sinhala',
# 'sk': 'slovak',
# 'sl': 'slovenian',
# 'so': 'somali',
# 'es': 'spanish',
# 'su': 'sundanese',
# 'sw': 'swahili',
# 'sv': 'swedish',
# 'tg': 'tajik',
# 'ta': 'tamil',
# 'te': 'telugu',
# 'th': 'thai',
# 'tr': 'turkish',
# 'uk': 'ukrainian',
# 'ur': 'urdu',
# 'ug': 'uyghur',
# 'uz': 'uzbek',
# 'vi': 'vietnamese',
# 'cy': 'welsh',
# 'xh': 'xhosa',
# 'yi': 'yiddish',
# 'yo': 'yoruba',
# 'zu': 'zulu',


Binary file added image/__pycache__/edit_1.cpython-310.pyc
Binary file not shown.
Binary file added image/__pycache__/edit_2.cpython-310.pyc
Binary file not shown.
Binary file added image/__pycache__/edit_3.cpython-310.pyc
Binary file not shown.
Binary file added image/__pycache__/edit_4.cpython-310.pyc
Binary file not shown.
Binary file added image/__pycache__/edit_5.cpython-310.pyc
Binary file not shown.
Loading