Skip to content

Commit

Permalink
more feature in 2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
h4MeMengoding committed Mar 6, 2022
1 parent c35ee55 commit d6a883e
Show file tree
Hide file tree
Showing 29 changed files with 53 additions and 224 deletions.
2 changes: 1 addition & 1 deletion Configs/dm.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# fileName: Configs/dm.py
# copyright ©️ 2021 nabilanavab
# copyright ©️ 2021 InHame Dev



Expand Down
173 changes: 1 addition & 172 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,172 +1 @@

<img src="https://telegra.ph/file/ec0047cc76e7080f818ff.png">

<small><i>About:</i></small>

```py
_ _ ___ ___ _____ ™
| | | | _____ _____ | _ \| \| __|
| | | |__/ _ \ V / -_) | _/| |) | _|
|_| |___,\___/\_/\___| |_| |___/|_|
[Nabil A Navab]
Email: nabilanavab@gmail.com
Telegram: @nabilanavab
```

<div align="center">

## Enjoy the API

<i>ilovePDF is an, easy-to-use open-source Telegram PDF bot fully written in python language 🐍</i>
<br><br>
<b>Released Under Apache License.</b><br>
it was specially developed for creating PDF's from images.. And Now, Bot Supports many other features for PDF manipulation 🦾
</div>
<a href="https://telegram.dog/ilovepdf_bot">Demo Bot</a>

<div align="center">
<h1><i>features:</i></h1>
<h3>Image to PDF</h3>
</div>

◍ This bot will helps you to convert multiple
images to pdf
◍ .jpg, .jpeg, .png files Supported
◍ Zero additional Compression
◍ For Better quality pdf, send media without
Compression
◍ Image sequence will be considered
◍ /cancel - deletes the current queue
◍ you can Rename your pdf at the time of /generate
- /generate name {pdf with your name}
- /generate {pdf with your id}
- /generate FileName {pdf with file name}
◍ /id to get your id

<h3 align="center">PDF to images</h3>

◍ Unlike other bots, this bot extract images
from your pdf files without converting the entire
pdf to pages..So always shows 100% speed 😉
◍ You can also fetch a single image or a list
of images from any part of your pdf
◍ Sequence will be considered
◍ For better quality images, bot support sending
images as documents (files)
<em align="center">This bot is using a different protocol for uploading
the extracted PDF-images..</em>

<h3 align="center">Files to PDF</h3>

In addition,
◍ About 40+ popular file formats can also be
convert to pdf using ilovepdf bot
◍ By default, bot support with ASCII char. support
[EPUB, FB2(e-book), XPS, openXPS, CBZ, CBR]
◍ All other files are converted using ConvertAPI
[csv, doc, docx, ppt, pptx, dot, dotx, log, mpp,
mpt, odt, pot, potx, pps, ppsx, pub, rtf, txt, vdx,
vsd, vsdx, vst, vstx, wpd, wps, wri, xls, xlsb,
xlsx, xlt, xltx, xml]
& supports Unicode Char(utf-8)
No need to specify file formats..✌️

<h3 align="center">Pdf to text</h3>

◍ Convert pdf to text, .txt file
◍ It also supports html(to view pdfs on browsers), json files

<h3 align="center">Split pdf</h3>

◍ Now you can Split your pdf in to smaller Ones
◍ /extract start:end
◍ supports single pages too..

<h3 align="center">Encrypt pdf</h3>

◍ Pdf Encryption Supported
◍ /encrypt pdf

<h3 align="center">Commands:</h3>

/start - Check wheather bot alive.
/help - for more help
/id - Get Ur Id (default pdf name)
/cancel - Delete's old queue
/generate - long tap to set a pdf name
/extract - to get images from pdf
/encrypt - pdf Encryption
/text - converts pdf to text, .txt, html, json files

<h3 align="center">Source code:</h3>

Developed by: @nabilanavab, Kerala

<h3 align="center">Privacy & Security:</h3>

Ones the necessary task is completed,
all your images including the pdf file
will be removed from the server.
for more information:
please check the Source code😌

# how to Create your Own pDf bot:<br>
## Quick start for developers

<i>Being a python library; To run this code, python must be installed on your machine</i>

### Packages/Library Installation

╭─────Local Host──〄
├───pip install PyPDF2
├───pip install pillow
├───pip install pymupdf
├───pip install tgcrypt
├───pip install pyrogram
├───pip install convertapi
├─────Heroku──〄
├─────Qovery──〄
╰────Railways──〄

### deploy on heroku:
[![Deploy](https://www.herokucdn.com/deploy/button.svg)](https://heroku.com/deploy?template=https://github.com/nabilanavab/ilovepdf)

## Project setUp:

API key 🔑
This bot only requires your Telegram Bot Token
as (API_TOKEN) for doing 95% tasks
For a Better experience U can add convertAPI
secret key as (CONVERT_API)

NB: <i>The API keys are personal & must be kept secret </i>

## Config Var:

<a href="https://my.telegram.org">Get API\_ID, API\_HASH</a><br>
<a href="https://telegram.dog/botfather">Get API_TOKEN</a><br>
<a href="https://www.convertapi.com/a/signup">Get CONVERT_API</a>

API_ID, API_HASH, API_TOKEN
CONVERT_API, UPDATE_CHANNEL
MAX_FILE_SIZE

## About LICENSE:

Apache License 2.0
Copyright 2021 nabilanavab
You can use and integrate ilovePDF
into your own code..And If you are
Redistributing your code, with
modifications, please try to mention
the changes : )

![elpablo_agadhgiaanlc4gk](https://user-images.githubusercontent.com/53673312/129444963-ac9d4fe6-1be3-4b89-979b-f442e46234ab.png)
//Under Development
2 changes: 1 addition & 1 deletion pdf.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# !/USR/BIN/PYTHON
# -*- COADING: UTF-8 -*-
# COPYRIGHT ©️ 2021 NABILANAVAB
# copyright ©️ 2021 InHame Dev


'''
Expand Down
4 changes: 2 additions & 2 deletions plugins/checkPdf.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# fileName : plugins/checkPdf.py
# copyright ©️ 2021 nabilanavab
# copyright ©️ 2021 InHame Dev



Expand Down Expand Up @@ -101,4 +101,4 @@ async def checkPdf(file_path, callbackQuery):
return "notPdf"


# Telegram: @nabilanavab
# Copyright InHame Dev
4 changes: 2 additions & 2 deletions plugins/dm/buat.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# fileName : plugins/dm/buat.py
# copyright ©️ 2021 nabilanavab
# copyright ©️ 2021 InHame Dev



Expand Down Expand Up @@ -138,4 +138,4 @@ async def buat(bot, message):
pass


# Telegram: @nabilanavab
# Copyright InHame Dev
4 changes: 2 additions & 2 deletions plugins/dm/callBack/asImgOrDoc.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# fileName : plugins/dm/callKembali/asImgOrDoc.py
# copyright ©️ 2021 nabilanavab
# copyright ©️ 2021 InHame Dev



Expand Down Expand Up @@ -439,4 +439,4 @@ async def _KBTPM(bot, callbackQuery):
pass


# Telegram: @nabilanavab
# Copyright InHame Dev
2 changes: 1 addition & 1 deletion plugins/dm/callBack/blaBla.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# fileName : plugins/dm/callBack/blaBla.py
# copyright ©️ 2021 nabilanavab
# copyright ©️ 2021 InHame Dev



Expand Down
4 changes: 2 additions & 2 deletions plugins/dm/callBack/compress.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# fileName : plugins/dm/callBack/compress.py
# copyright ©️ 2021 nabilanavab
# copyright ©️ 2021 InHame Dev



Expand Down Expand Up @@ -130,4 +130,4 @@ async def _compress(bot, callbackQuery):
pass


# Telegram: @nabilanavab
# Copyright InHame Dev
4 changes: 2 additions & 2 deletions plugins/dm/callBack/decrypt.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# fileName : plugins/dm/callBack/decrypt.py
# copyright ©️ 2021 nabilanavab
# copyright ©️ 2021 InHame Dev



Expand Down Expand Up @@ -138,4 +138,4 @@ async def _decrypt(bot, callbackQuery):
pass


# Telegram: @nabilanavab
# Copyright InHame Dev
4 changes: 2 additions & 2 deletions plugins/dm/callBack/encrypt.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# fileName : plugins/dm/callBack/encrypt.py
# copyright ©️ 2021 nabilanavab
# copyright ©️ 2021 InHame Dev



Expand Down Expand Up @@ -181,4 +181,4 @@ async def _encrypt(bot, callbackQuery):
pass


# Telegram: @nabilanavab
# Copyright InHame Dev
4 changes: 2 additions & 2 deletions plugins/dm/callBack/merge.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# fileName : plugins/dm/callBack/merge.py
# copyright ©️ 2021 nabilanavab
# copyright ©️ 2021 InHame Dev



Expand Down Expand Up @@ -197,4 +197,4 @@ async def _merge(bot, callbackQuery):
pass


# Telegram: @nabilanavab
# Copyright InHame Dev
4 changes: 2 additions & 2 deletions plugins/dm/callBack/pdfMetaData.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# fileName : plugins/dm/Callback/pdfMetaData.py
# copyright ©️ 2021 nabilanavab
# copyright ©️ 2021 InHame Dev



Expand Down Expand Up @@ -225,4 +225,4 @@ async def _KpdfInfo(bot, callbackQuery):
pass


# Telegram: @nabilanavab
# Copyright InHame Dev
4 changes: 2 additions & 2 deletions plugins/dm/callBack/rename.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# fileName : plugins/dm/callBack/rename.py
# copyright ©️ 2021 nabilanavab
# copyright ©️ 2021 InHame Dev



Expand Down Expand Up @@ -114,4 +114,4 @@ async def _encrypt(bot, callbackQuery):
pass


# Telegram: @nabilanavab
# Copyright InHame Dev
4 changes: 2 additions & 2 deletions plugins/dm/callBack/rotate.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# fileName : plugins/dm/callKembali/rotate.py
# copyright ©️ 2021 nabilanavab
# copyright ©️ 2021 InHame Dev



Expand Down Expand Up @@ -230,4 +230,4 @@ async def _rot360(bot, callbackQuery):
pass


# Telegram: @nabilanavab
# Copyright InHame Dev
2 changes: 1 addition & 1 deletion plugins/dm/callBack/split.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# fileName : plugins/dm/callKembali/split.py
# copyright ©️ 2021 nabilanavab
# copyright ©️ 2021 InHame Dev



Expand Down
2 changes: 1 addition & 1 deletion plugins/dm/callBack/stamp.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# fileName : plugins/dm/callKembali/stamp.py
# copyright ©️ 2021 nabilanavab
# copyright ©️ 2021 InHame Dev



Expand Down
4 changes: 2 additions & 2 deletions plugins/dm/callBack/text.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# fileName : plugins/dm/callBack/text.py
# copyright ©️ 2021 nabilanavab
# copyright ©️ 2021 InHame Dev



Expand Down Expand Up @@ -431,4 +431,4 @@ async def _J(bot, callbackQuery):
pass


# Telegram: @nabilanavab
# Copyright InHame Dev
4 changes: 2 additions & 2 deletions plugins/dm/callBack/toImages.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# fileName : plugins/dm/callBack/toImage.py
# copyright ©️ 2021 nabilanavab
# copyright ©️ 2021 InHame Dev



Expand Down Expand Up @@ -1200,4 +1200,4 @@ async def _KEXTRACT(bot, callbackQuery):
pass


# Telegram: @nabilanavab
# Copyright InHame Dev
4 changes: 2 additions & 2 deletions plugins/dm/cancel.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# fileName : plugins/dm/cancel.py
# copyright ©️ 2021 nabilanavab
# copyright ©️ 2021 InHame Dev



Expand Down Expand Up @@ -70,4 +70,4 @@ async def cancelP2I(bot, message):
pass


# Telegram: @nabilanavab
# Copyright InHame Dev
4 changes: 2 additions & 2 deletions plugins/dm/document.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# fileName : plugins/dm/document.py
# copyright ©️ 2021 nabilanavab
# copyright ©️ 2021 InHame Dev



Expand Down Expand Up @@ -435,4 +435,4 @@ async def documents(bot, message):
print("plugins/dm/document : ", e)


# Telegram: @nabilanavab
# Copyright InHame Dev
Loading

0 comments on commit d6a883e

Please sign in to comment.