We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
For me, I need proxy to use telegram and discord, hope this project has proxy support
The text was updated successfully, but these errors were encountered:
Thanks for opening your first issue here! Be sure to follow the issue template! 👋🐞👋
Sorry, something went wrong.
Could you please elaborate on your use case?
telegram is blocked at where i lived, i must send notification to telegram through proxy, i'd like function like the code bellow:
from notifiers import get_notifier proxies = {'http': 'http://127.0.0.1:1080', 'https': 'socks5://127.0.0.1:1080'} telegram = get_notifier('telegram') telegram.notify(message='Hi!', token='TOKEN', chat_id=1234, proxies=proxies) ```
Yeah, this is very doable. Currently the base URL is a class attribute, but making it passable should be fairly straightforward
Since notifiers uses requests, seems like there's a workaround for this:
$ export HTTP_PROXY="http://10.10.1.10:3128" $ export HTTPS_PROXY="http://10.10.1.10:1080" $ python >>> import requests >>> requests.get('http://example.org')
liiight
No branches or pull requests
For me, I need proxy to use telegram and discord, hope this project has proxy support
The text was updated successfully, but these errors were encountered: