markusressel / cli2telegram Goto Github PK
View Code? Open in Web Editor NEWSmall utility to send Telegram messages from the CLI.
License: GNU Affero General Public License v3.0
Small utility to send Telegram messages from the CLI.
License: GNU Affero General Public License v3.0
Dependabot couldn't authenticate with https://pypi.python.org/simple/.
You can provide authentication details in your Dependabot dashboard by clicking into the account menu (in the top right) and selecting 'Config variables'.
Getting this error message when running this command printf "Message" | cli2telegram -b "123456789:ABCDEFG" -c "123456789" with valid bot token and chat id. System has python 3.10.9 and export PATH=$PATH:$HOME/.local/bin in .bash_profile:
Updater.init() got an unexpected keyword argument 'token'
Traceback (most recent call last):
File "/home/user/.local/lib/python3.10/site-packages/cli2telegram/util.py", line 94, in _try_send_message
updater = Updater(token=bot_token, use_context=True)
TypeError: Updater.init() got an unexpected keyword argument 'token'
Error sending message, retrying in 10.0 seconds...
I've tried editing util.py with valid token and running cli2telegram with updater = Updater("123456789:ABCDEFG") in util.py and I get the following error:
Updater.init() missing 1 required positional argument: 'update_queue'
Traceback (most recent call last):
File "/home/user/.local/lib/python3.10/site-packages/cli2telegram/util.py", line 94, in _try_send_message
updater = Updater("123456789:ABCDEFG")
TypeError: Updater.init() missing 1 required positional argument: 'update_queue'
Error sending message, retrying in 10.0 seconds...
Would be quite cool to be able to just echo some text to a unix file socket to send a message to a telegram chat.
Although it would be possible to add some protocol, which could allow sending messages to arbitrary chat ids, I think this is out of scope for this project.
So a simple:
echo "Hello World!" > /some/path/cli2telegram.sock
should be enough to send a Hello World!
message to the configured chat.
For this to work, cli2telegram would need to run as a daemon.
Describe the bug
Hi, I'm unable to install cli2telegram package on my freshly installed ubuntu server 18.04.4 lts
To Reproduce
Steps to reproduce the behavior:
sudo apt install python-pip
pip install cli2telegram
Expected behavior
should successfully install
Tracelog
pip install cli2telegram
Collecting cli2telegram
Using cached https://files.pythonhosted.org/packages/93/dd/b2e5d0041b2e7318365b74ee7b4eb0c7ff1ab420e02902748e71010f6cea/cli2telegram-1.0.0.tar.gz
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-build-GkD8kJ/cli2telegram/setup.py", line 52
def readme_type() -> str:
^
SyntaxError: invalid syntax
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-GkD8kJ/cli2telegram/
Desktop (please complete the following information):
Additional context
Python version: 2.7.17
Is your feature request related to a problem? Please describe.
Currently only telegram is supported, which is pretty limiting.
Describe the solution you'd like
Evaluate the use of apprise as a notification backend.
Note:
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.