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.
❯ telewater --help
Usage: telewater [OPTIONS] NAME TOKEN
Run the bot with the username NAME and TOKEN obtained from @BotFather
Arguments:
NAME [required]
TOKEN [required]
Options:
--help Show this message and exit.
Example:
telewater myexamplebot 111111530:AAG_ssL27ff66133BdaaajQoEJaaabJz3Q8
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.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 757560282378e114b1066a051b083e03e0ff3c3aee296751e704e57031e4cb97 |
|
MD5 | e24573631234576fa60bab359db4fcf6 |
|
BLAKE2b-256 | 77dcaab01b190ef686e4e07b7696622e0a831fb9a352a7e6b5daf75de553c8f8 |