A telegram bot that applies watermark on images, gifs and videos.
Project description
telewater
A telegram bot that applies watermark on images, gifs and videos.
Requirements
Make sure to have these installed in your system.
- python3.9+ and pip (the bot is built with the telethon library)
- ffmpeg (used by the bot for applying watermark)
Verification
Open you terminal to check if you have all basic requirements properly installed.
-
Run
python --version
and you should get something like thisPython 3.9.2
(or above). -
Run
pip --version
and you should getpip 20.2.2
(or above).Some systems may require to use
python3
andpip3
instead of the above. -
Run
ffmpeg -h
and it should display a help message and version above4.2.4
.
Installation
pip install telewater
Configuration
Create a file named .env
inside your current directory (or the directory from which you desire to run the telewater
command.)
Fill the file with your API_ID
and API_HASH
Example:
API_ID=12345
API_HASH=102837:kjfjfk9r9JOIJOIjoi_jf9wr0w
Replace the above values with the actual values. Learn how to get them for your telegram account.
Usage
Telewater has a simple command line interface to start the bot.
Simply open your terminal and run telewater
.
Note:
- It will prompt you to input the bot name and token.
For more advanced options, run telewater --help
.
Usage: telewater [OPTIONS]
Run the bot with the username and token obtained from @BotFather.
Options:
-n, --name TEXT Name of the bot you are runnning. [env var: BOT_USERNAME;
required]
-t, --token TEXT Bot Token obtained from @BotFather. [env var: BOT_TOKEN;
required]
-l, --loud Increase output verbosity. [env var: LOUD]
-v, --version Show version and exit.
--help Show this message and exit.
Note:
- In the above help text, you see
env var
specified for some options. The value of those options can be set by using an environment variable (of the specified name), instead of passing as a command line argument.- You can write your enviroment variables for telewater inside a file called
.env
which lies in the same directory from whichtelewater
command is invoked.
For any furthur help feel free to create an issue.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for telewater-0.0.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | aa9b42d4683b5a1c5bb9e575ffc31fd6dc37bcc8c7da220378dc6080b765dbdc |
|
MD5 | 13e08e447c244af13f6d914859a60c32 |
|
BLAKE2b-256 | 787d1a9ee9a06678410b06aabb8185147970c0241bc8c0d427bf4508c9d94a94 |