Git Product home page Git Product logo

telewater's Introduction

telewater

A telegram bot that applies watermark on images, gifs and videos.

Features

  • Fast because it is made using async libraries.
  • Simple to use.
  • Any one who uses an instance of the bot will have to use the same watermark and position. This is meant to be used by single person/organization (by only you or your team), as configuration is stored at a global level instead of per user basis.
  • No database connection required.
  • It does not store media (photos/videos/gifs) on the server. Media is deleted immediately after the watermarked version is sent to the user.

Watch this video on YouTube to learn how to use and deploy this bot.

Usage

Using the bot is very simple. Just send a photo, video or gif to the bot. The bot will reply with the watermarked media.

The bot commands /set and /get can set and get the value of the configuration variables. The commands are simple and intuitive. The bot will show you the usage if you send an incorrect argument.

Deploy

Click on this link and get free 100$ on Digital Ocean.

DigitalOcean Referral Badge

NOTE You will get nothing if you directly sign up from Digital Ocean Home Page. Use the link above, or click on the big fat button above to get free 100$.

Read the Guide to Deploy to Digital Ocean.


This application can also be easily deployed to Heroku, which is extremely good if you want to enjoy a free tier.

You may read further to learn about more more deployment options.

Deploy

Click on the above button. A form will appear, where you need to enter the credentials for the bot. After the app is deployed sucessfully, turn on the woker dyno to start the bot.

Installation

The following is the guide to install telewater on your computer, or VPS.

If you are a beginner, don't bother yourself with these. Just go ahead with the heroku method described abvoe.

If you are familiar with Docker then click here otherwise, continue reading.

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.

  1. Run python --version and you should get something like this Python 3.9.2 (or above).

  2. Run pip --version and you should get pip 20.2.2 (or above).

    Some systems may require to use python3 and pip3 instead of the above.

  3. Run ffmpeg -h and it should display a help message and version above 4.2.4.

Install via pip

pip install telewater

Starting telewater

Telewater has a simple command line interface to start the bot.

Simply open your terminal and run telewater. It will prompt you to enter the required information.

Further reading

For any further help, feel free to create an issue in the GitHub repo.

telewater's People

Contributors

aahnik avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

telewater's Issues

f*ckkkk youuuuuuuuu

for making it so complicated. didnt work with deploy, didnt work with CMD. just fuck uuuuuuuuuuuuuu

Cant find ffmpeg

Hello, I have telegram bot running Dokku droplet in Digital Ocean.

I've downloaded ffmpeg by sudo apt-get install ffmpeg on my Ubuntu machine from DigitalOcean.
When I'm searching by Whereis ffmpeg it return /usr/bin/ffmpeg.

In my code I'm converting telegram voice's sample rate from 24000/48000hz to 16000 to modify them.

command = [
            r'/usr/bin/ffmpeg',  # path to ffmpeg
            '-i', in_filename,
            '-f', 'ogg',
            '-acodec', 'libopus',
            '-ar', '48000',
            '-'
        ]
   ` subprocess.call(command, stdout=temp_out_file)`

It return in logs : FileNotFoundError: [Errno 2] No such file or directory: '/usr/bin/ffmpeg'
What path I should write to my telegram bot to find ffmpeg?

Dependency resolution issue

my installing process gets stuck on
Collecting idna<3,>=2.5

pip3, python3 and ffmpeg are the right version.

thanks

here all the log of the command.
$ pip3 install telewater
Defaulting to user installation because normal site-packages is not writeable
Collecting telewater
  Downloading telewater-0.1.1-py3-none-any.whl (10 kB)
Collecting pydantic<2.0.0,>=1.8.1
  Downloading pydantic-1.8.2-cp39-cp39-manylinux2014_x86_64.whl (11.3 MB)
     |████████████████████████████████| 11.3 MB 32.7 MB/s
Collecting python-dotenv<0.17.0,>=0.16.0
  Downloading python_dotenv-0.16.0-py2.py3-none-any.whl (18 kB)
Collecting hachoir<4.0.0,>=3.1.2
  Downloading hachoir-3.1.2-py3-none-any.whl (640 kB)
     |████████████████████████████████| 640 kB 105.8 MB/s
Collecting requests<3.0.0,>=2.25.1
  Downloading requests-2.25.1-py2.py3-none-any.whl (61 kB)
     |████████████████████████████████| 61 kB 13.7 MB/s
Collecting Pillow<9.0.0,>=8.1.2
  Downloading Pillow-8.2.0-cp39-cp39-manylinux1_x86_64.whl (3.0 MB)
     |████████████████████████████████| 3.0 MB 96.2 MB/s
Collecting Telethon<2.0.0,>=1.21.1
  Downloading Telethon-1.21.1-py3-none-any.whl (515 kB)
     |████████████████████████████████| 515 kB 103.3 MB/s
Collecting PyYAML<6.0.0,>=5.4.1
  Downloading PyYAML-5.4.1-cp39-cp39-manylinux1_x86_64.whl (630 kB)
     |████████████████████████████████| 630 kB 107.0 MB/s
Collecting cryptg<0.3,>=0.2.post2
  Downloading cryptg-0.2.post4-cp39-cp39-manylinux2010_x86_64.whl (41 kB)
     |████████████████████████████████| 41 kB 790 kB/s
Collecting typer<0.4.0,>=0.3.2
  Downloading typer-0.3.2-py3-none-any.whl (21 kB)
Collecting aiohttp<4.0.0,>=3.7.4
  Downloading aiohttp-3.7.4.post0-cp39-cp39-manylinux2014_x86_64.whl (1.4 MB)
     |████████████████████████████████| 1.4 MB 96.6 MB/s
Requirement already satisfied: attrs>=17.3.0 in /usr/lib/python3/dist-packages (from aiohttp<4.0.0,>=3.7.4->telewater) (17.4.0)
Collecting typing-extensions>=3.6.5
  Downloading typing_extensions-3.10.0.0-py3-none-any.whl (26 kB)
Collecting async-timeout<4.0,>=3.0
  Downloading async_timeout-3.0.1-py3-none-any.whl (8.2 kB)
Requirement already satisfied: chardet<5.0,>=2.0 in /usr/lib/python3/dist-packages (from aiohttp<4.0.0,>=3.7.4->telewater) (3.0.4)
Collecting multidict<7.0,>=4.5
  Downloading multidict-5.1.0-cp39-cp39-manylinux2014_x86_64.whl (151 kB)
     |████████████████████████████████| 151 kB 98.4 MB/s
Collecting yarl<2.0,>=1.0
  Downloading yarl-1.6.3-cp39-cp39-manylinux2014_x86_64.whl (315 kB)
     |████████████████████████████████| 315 kB 95.0 MB/s
Collecting pycparser
  Downloading pycparser-2.20-py2.py3-none-any.whl (112 kB)
     |████████████████████████████████| 112 kB 104.9 MB/s
Collecting cffi>=1.0.0
  Downloading cffi-1.14.5-cp39-cp39-manylinux1_x86_64.whl (406 kB)
     |████████████████████████████████| 406 kB 99.6 MB/s
Requirement already satisfied: certifi>=2017.4.17 in /usr/lib/python3/dist-packages (from requests<3.0.0,>=2.25.1->telewater) (2018.1.18)
Requirement already satisfied: idna<3,>=2.5 in /usr/lib/python3/dist-packages (from requests<3.0.0,>=2.25.1->telewater) (2.6)
Requirement already satisfied: urllib3<1.27,>=1.21.1 in /usr/lib/python3/dist-packages (from requests<3.0.0,>=2.25.1->telewater) (1.22)
Collecting rsa
  Downloading rsa-4.7.2-py3-none-any.whl (34 kB)
Collecting pyaes
  Downloading pyaes-1.6.1.tar.gz (28 kB)
    ERROR: Command errored out with exit status 1:
     command: /usr/bin/python3 -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-ied52l3s/pyaes_3356eed0390d4dd29      58e35806c29e458/setup.py'"'"'; __file__='"'"'/tmp/pip-install-ied52l3s/pyaes_3356eed0390d4dd2958e35806c29e458/setup.py'"'"';f = getattr(tokenize,       '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().re      place('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-pip-egg-info-09gn7x6c
         cwd: /tmp/pip-install-ied52l3s/pyaes_3356eed0390d4dd2958e35806c29e458/
    Complete output (11 lines):
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/usr/lib/python3/dist-packages/setuptools/__init__.py", line 14, in <module>
        from setuptools.dist import Distribution, Feature
      File "/usr/lib/python3/dist-packages/setuptools/dist.py", line 24, in <module>
        from setuptools.depends import Require
      File "/usr/lib/python3/dist-packages/setuptools/depends.py", line 7, in <module>
        from .py33compat import Bytecode
      File "/usr/lib/python3/dist-packages/setuptools/py33compat.py", line 54, in <module>
        unescape = getattr(html, 'unescape', html_parser.HTMLParser().unescape)
    AttributeError: 'HTMLParser' object has no attribute 'unescape'
    ----------------------------------------
WARNING: Discarding https://files.pythonhosted.org/packages/44/66/2c17bae31c906613795711fc78045c285048168919ace2220daa372c7d72/pyaes-1.6.1.tar.gz      #sha256=02c1b1405c38d3c370b085fb952dd8bea3fadcee6411ad99f312cc129c536d8f (from https://pypi.org/simple/pyaes/). Command errored out with exit sta      tus 1: python setup.py egg_info Check the logs for full command output.
  Downloading pyaes-1.6.0.tar.gz (28 kB)
    ERROR: Command errored out with exit status 1:
     command: /usr/bin/python3 -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-ied52l3s/pyaes_2801b20cda204ecf9      b03d18de251bfb9/setup.py'"'"'; __file__='"'"'/tmp/pip-install-ied52l3s/pyaes_2801b20cda204ecf9b03d18de251bfb9/setup.py'"'"';f = getattr(tokenize,       '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().re      place('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-pip-egg-info-tsyfu3lh
         cwd: /tmp/pip-install-ied52l3s/pyaes_2801b20cda204ecf9b03d18de251bfb9/
    Complete output (11 lines):
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/usr/lib/python3/dist-packages/setuptools/__init__.py", line 14, in <module>
        from setuptools.dist import Distribution, Feature
      File "/usr/lib/python3/dist-packages/setuptools/dist.py", line 24, in <module>
        from setuptools.depends import Require
      File "/usr/lib/python3/dist-packages/setuptools/depends.py", line 7, in <module>
        from .py33compat import Bytecode
      File "/usr/lib/python3/dist-packages/setuptools/py33compat.py", line 54, in <module>
        unescape = getattr(html, 'unescape', html_parser.HTMLParser().unescape)
    AttributeError: 'HTMLParser' object has no attribute 'unescape'
    ----------------------------------------
WARNING: Discarding https://files.pythonhosted.org/packages/63/31/6768a72cdca5dbd299ae798b690801e6c9c2f018332eec3c5fca79370dba/pyaes-1.6.0.tar.gz      #sha256=9cd5a54d914b1eebfb14fcb490315214b6a0304d9f1bb47e90d1d8e0b15ce92e (from https://pypi.org/simple/pyaes/). Command errored out with exit sta      tus 1: python setup.py egg_info Check the logs for full command output.
  Downloading pyaes-1.5.0.tar.gz (28 kB)
    ERROR: Command errored out with exit status 1:
     command: /usr/bin/python3 -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-ied52l3s/pyaes_637042d9e1cc4a1aa      a9c1b9434b8e0c0/setup.py'"'"'; __file__='"'"'/tmp/pip-install-ied52l3s/pyaes_637042d9e1cc4a1aaa9c1b9434b8e0c0/setup.py'"'"';f = getattr(tokenize,       '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().re      place('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-pip-egg-info-0ociarlr
         cwd: /tmp/pip-install-ied52l3s/pyaes_637042d9e1cc4a1aaa9c1b9434b8e0c0/
    Complete output (11 lines):
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/usr/lib/python3/dist-packages/setuptools/__init__.py", line 14, in <module>
        from setuptools.dist import Distribution, Feature
      File "/usr/lib/python3/dist-packages/setuptools/dist.py", line 24, in <module>
        from setuptools.depends import Require
      File "/usr/lib/python3/dist-packages/setuptools/depends.py", line 7, in <module>
        from .py33compat import Bytecode
      File "/usr/lib/python3/dist-packages/setuptools/py33compat.py", line 54, in <module>
        unescape = getattr(html, 'unescape', html_parser.HTMLParser().unescape)
    AttributeError: 'HTMLParser' object has no attribute 'unescape'
    ----------------------------------------
WARNING: Discarding https://files.pythonhosted.org/packages/20/ab/645da9be4db12d6740ae551f2d2c7c570a5088bd34f74b283f7426c587a0/pyaes-1.5.0.tar.gz      #sha256=da451f5dd01ae91907c9c081aeea6c9b81c75d869d41ff5d4f220fce08ed5b03 (from https://pypi.org/simple/pyaes/). Command errored out with exit sta      tus 1: python setup.py egg_info Check the logs for full command output.
  Downloading pyaes-1.4.0.tar.gz (27 kB)
    ERROR: Command errored out with exit status 1:
     command: /usr/bin/python3 -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-ied52l3s/pyaes_6fc5b12f919b40169      3398c857b2e984b/setup.py'"'"'; __file__='"'"'/tmp/pip-install-ied52l3s/pyaes_6fc5b12f919b401693398c857b2e984b/setup.py'"'"';f = getattr(tokenize,       '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().re      place('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-pip-egg-info-wo89arb8
         cwd: /tmp/pip-install-ied52l3s/pyaes_6fc5b12f919b401693398c857b2e984b/
    Complete output (11 lines):
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/usr/lib/python3/dist-packages/setuptools/__init__.py", line 14, in <module>
        from setuptools.dist import Distribution, Feature
      File "/usr/lib/python3/dist-packages/setuptools/dist.py", line 24, in <module>
        from setuptools.depends import Require
      File "/usr/lib/python3/dist-packages/setuptools/depends.py", line 7, in <module>
        from .py33compat import Bytecode
      File "/usr/lib/python3/dist-packages/setuptools/py33compat.py", line 54, in <module>
        unescape = getattr(html, 'unescape', html_parser.HTMLParser().unescape)
    AttributeError: 'HTMLParser' object has no attribute 'unescape'
    ----------------------------------------
WARNING: Discarding https://files.pythonhosted.org/packages/22/52/4d3910757ec0ef3a8a105a3ba872977c6bc73f10aba9353ee6ffbae8b62a/pyaes-1.4.0.tar.gz      #sha256=0507c918702af11e5dffec68850fd34645ab646b468b86be60a1f3cb4c33ec94 (from https://pypi.org/simple/pyaes/). Command errored out with exit sta      tus 1: python setup.py egg_info Check the logs for full command output.
  Downloading pyaes-1.3.0.tar.gz (27 kB)
    ERROR: Command errored out with exit status 1:
     command: /usr/bin/python3 -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-ied52l3s/pyaes_0ecc4c3f90b348d9a      db122cc7a66f2b7/setup.py'"'"'; __file__='"'"'/tmp/pip-install-ied52l3s/pyaes_0ecc4c3f90b348d9adb122cc7a66f2b7/setup.py'"'"';f = getattr(tokenize,       '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().re      place('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-pip-egg-info-zl60p8fs
         cwd: /tmp/pip-install-ied52l3s/pyaes_0ecc4c3f90b348d9adb122cc7a66f2b7/
    Complete output (11 lines):
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/usr/lib/python3/dist-packages/setuptools/__init__.py", line 14, in <module>
        from setuptools.dist import Distribution, Feature
      File "/usr/lib/python3/dist-packages/setuptools/dist.py", line 24, in <module>
        from setuptools.depends import Require
      File "/usr/lib/python3/dist-packages/setuptools/depends.py", line 7, in <module>
        from .py33compat import Bytecode
      File "/usr/lib/python3/dist-packages/setuptools/py33compat.py", line 54, in <module>
        unescape = getattr(html, 'unescape', html_parser.HTMLParser().unescape)
    AttributeError: 'HTMLParser' object has no attribute 'unescape'
    ----------------------------------------
WARNING: Discarding https://files.pythonhosted.org/packages/5f/04/3d70937868f65d87100835afebecaffa0b010ae49dc2f67a39bee6da9606/pyaes-1.3.0.tar.gz      #sha256=c2f2baf9316bbdaa1b44c8e57d347c97e8396470c644d606bb5c3489dc3a3384 (from https://pypi.org/simple/pyaes/). Command errored out with exit sta      tus 1: python setup.py egg_info Check the logs for full command output.
  Downloading pyaes-1.2.0.tar.gz (26 kB)
    ERROR: Command errored out with exit status 1:
     command: /usr/bin/python3 -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-ied52l3s/pyaes_d2f6837a5e854f969      0041897ec5a5035/setup.py'"'"'; __file__='"'"'/tmp/pip-install-ied52l3s/pyaes_d2f6837a5e854f9690041897ec5a5035/setup.py'"'"';f = getattr(tokenize,       '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().re      place('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-pip-egg-info-59nlgy2p
         cwd: /tmp/pip-install-ied52l3s/pyaes_d2f6837a5e854f9690041897ec5a5035/
    Complete output (11 lines):
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/usr/lib/python3/dist-packages/setuptools/__init__.py", line 14, in <module>
        from setuptools.dist import Distribution, Feature
      File "/usr/lib/python3/dist-packages/setuptools/dist.py", line 24, in <module>
        from setuptools.depends import Require
      File "/usr/lib/python3/dist-packages/setuptools/depends.py", line 7, in <module>
        from .py33compat import Bytecode
      File "/usr/lib/python3/dist-packages/setuptools/py33compat.py", line 54, in <module>
        unescape = getattr(html, 'unescape', html_parser.HTMLParser().unescape)
    AttributeError: 'HTMLParser' object has no attribute 'unescape'
    ----------------------------------------
WARNING: Discarding https://files.pythonhosted.org/packages/13/76/fd86c3137db9eba4dcfc26fc782e9d0231e57334abd35c9576db1d02de8f/pyaes-1.2.0.tar.gz      #sha256=04360103d2c98767a844780beff7d37df33f4516cff48f95363779ba0cbc161a (from https://pypi.org/simple/pyaes/). Command errored out with exit sta      tus 1: python setup.py egg_info Check the logs for full command output.
  Downloading pyaes-1.1.0.tar.gz (25 kB)
    ERROR: Command errored out with exit status 1:
     command: /usr/bin/python3 -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-ied52l3s/pyaes_6059db9f19934c1ab      45b9fd49cbba133/setup.py'"'"'; __file__='"'"'/tmp/pip-install-ied52l3s/pyaes_6059db9f19934c1ab45b9fd49cbba133/setup.py'"'"';f = getattr(tokenize,       '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().re      place('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-pip-egg-info-x6iy_o8t
         cwd: /tmp/pip-install-ied52l3s/pyaes_6059db9f19934c1ab45b9fd49cbba133/
    Complete output (11 lines):
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/usr/lib/python3/dist-packages/setuptools/__init__.py", line 14, in <module>
        from setuptools.dist import Distribution, Feature
      File "/usr/lib/python3/dist-packages/setuptools/dist.py", line 24, in <module>
        from setuptools.depends import Require
      File "/usr/lib/python3/dist-packages/setuptools/depends.py", line 7, in <module>
        from .py33compat import Bytecode
      File "/usr/lib/python3/dist-packages/setuptools/py33compat.py", line 54, in <module>
        unescape = getattr(html, 'unescape', html_parser.HTMLParser().unescape)
    AttributeError: 'HTMLParser' object has no attribute 'unescape'
    ----------------------------------------
WARNING: Discarding https://files.pythonhosted.org/packages/bd/5f/4ad4a42ad3f2db769dca2d0fd533cc7279929844367b581ed0bdc3e39c3a/pyaes-1.1.0.tar.gz      #sha256=7f282d13c2bed0a7f349173af86217213d2e39f9fd3831d3e981d9dee23c293d (from https://pypi.org/simple/pyaes/). Command errored out with exit sta      tus 1: python setup.py egg_info Check the logs for full command output.
  Downloading pyaes-1.0.0.tar.gz (23 kB)
    ERROR: Command errored out with exit status 1:
     command: /usr/bin/python3 -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-ied52l3s/pyaes_84fc3e2e6e7f41a9b      71383b9748fbcd3/setup.py'"'"'; __file__='"'"'/tmp/pip-install-ied52l3s/pyaes_84fc3e2e6e7f41a9b71383b9748fbcd3/setup.py'"'"';f = getattr(tokenize,       '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().re      place('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-pip-egg-info-56c3jc1v
         cwd: /tmp/pip-install-ied52l3s/pyaes_84fc3e2e6e7f41a9b71383b9748fbcd3/
    Complete output (11 lines):
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/usr/lib/python3/dist-packages/setuptools/__init__.py", line 14, in <module>
        from setuptools.dist import Distribution, Feature
      File "/usr/lib/python3/dist-packages/setuptools/dist.py", line 24, in <module>
        from setuptools.depends import Require
      File "/usr/lib/python3/dist-packages/setuptools/depends.py", line 7, in <module>
        from .py33compat import Bytecode
      File "/usr/lib/python3/dist-packages/setuptools/py33compat.py", line 54, in <module>
        unescape = getattr(html, 'unescape', html_parser.HTMLParser().unescape)
    AttributeError: 'HTMLParser' object has no attribute 'unescape'
    ----------------------------------------
WARNING: Discarding https://files.pythonhosted.org/packages/08/c4/da99734108e159e5ca496736824c7ed5484b7aaa471341758d4be97ed014/pyaes-1.0.0.tar.gz      #sha256=ad4ee0d7effde2ce1db0cbb82ca8b008123f0a892fc7292f60d529b747006a75 (from https://pypi.org/simple/pyaes/). Command errored out with exit sta      tus 1: python setup.py egg_info Check the logs for full command output.
  Downloading pyaes-0.1.0.tar.gz (21 kB)
    ERROR: Command errored out with exit status 1:
     command: /usr/bin/python3 -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-ied52l3s/pyaes_780bfc96140046f9a      81aaa7064ff7971/setup.py'"'"'; __file__='"'"'/tmp/pip-install-ied52l3s/pyaes_780bfc96140046f9a81aaa7064ff7971/setup.py'"'"';f = getattr(tokenize,       '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().re      place('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-pip-egg-info-8cb0biur
         cwd: /tmp/pip-install-ied52l3s/pyaes_780bfc96140046f9a81aaa7064ff7971/
    Complete output (11 lines):
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/usr/lib/python3/dist-packages/setuptools/__init__.py", line 14, in <module>
        from setuptools.dist import Distribution, Feature
      File "/usr/lib/python3/dist-packages/setuptools/dist.py", line 24, in <module>
        from setuptools.depends import Require
      File "/usr/lib/python3/dist-packages/setuptools/depends.py", line 7, in <module>
        from .py33compat import Bytecode
      File "/usr/lib/python3/dist-packages/setuptools/py33compat.py", line 54, in <module>
        unescape = getattr(html, 'unescape', html_parser.HTMLParser().unescape)
    AttributeError: 'HTMLParser' object has no attribute 'unescape'
    ----------------------------------------
WARNING: Discarding https://files.pythonhosted.org/packages/59/af/cb8be1aa6e39d08888c68a9f256d482786adde98b6cbbe70c3b90056f38e/pyaes-0.1.0.tar.gz      #sha256=65d6bb76a0c49d9bd2df27a9dd2c2223ae540ae253b4c459f0dbcb825d9420fe (from https://pypi.org/simple/pyaes/). Command errored out with exit sta      tus 1: python setup.py egg_info Check the logs for full command output.
INFO: pip is looking at multiple versions of idna to determine which version is compatible with other requirements. This could take a while.
Collecting idna<3,>=2.5
  Downloading idna-2.10-py2.py3-none-any.whl (58 kB)
     |████████████████████████████████| 58 kB 14.5 MB/s
  Downloading idna-2.9-py2.py3-none-any.whl (58 kB)
     |████████████████████████████████| 58 kB 12.6 MB/s
  Downloading idna-2.8-py2.py3-none-any.whl (58 kB)
     |████████████████████████████████| 58 kB 14.7 MB/s
  Downloading idna-2.7-py2.py3-none-any.whl (58 kB)
     |████████████████████████████████| 58 kB 13.4 MB/s
  Downloading idna-2.5-py2.py3-none-any.whl (55 kB)
     |████████████████████████████████| 55 kB 4.1 MB/s

Can't start bot - TypeError: __init__() missing 2 required positional arguments: 'scope' and 'lang_code'

Hi there,

I've installed all modules and filled in the API keys etc, but I get the following error:

Image exists
Traceback (most recent call last):
  File "c:\python39\lib\runpy.py", line 197, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "c:\python39\lib\runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "C:\Python39\Scripts\telewater.exe\__main__.py", line 7, in <module>
  File "c:\python39\lib\site-packages\typer\main.py", line 214, in __call__
    return get_command(self)(*args, **kwargs)
  File "c:\python39\lib\site-packages\click\core.py", line 829, in __call__
    return self.main(*args, **kwargs)
  File "c:\python39\lib\site-packages\click\core.py", line 782, in main
    rv = self.invoke(ctx)
  File "c:\python39\lib\site-packages\click\core.py", line 1066, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "c:\python39\lib\site-packages\click\core.py", line 610, in invoke
    return callback(*args, **kwargs)
  File "c:\python39\lib\site-packages\typer\main.py", line 497, in wrapper
    return callback(**use_params)  # type: ignore
  File "c:\python39\lib\site-packages\telewater\cli.py", line 102, in main
    start_bot(API_ID, API_HASH, name, token)
  File "c:\python39\lib\site-packages\telewater\main.py", line 23, in start_bot
    functions.bots.SetBotCommandsRequest(
TypeError: __init__() missing 2 required positional arguments: 'scope' and 'lang_code'

Looking forward to your assistance!

Best regards

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.