{ "info": { "author": "Sangeon Yong", "author_email": "koragon2@kaist.ac.kr", "bugtrack_url": null, "classifiers": [], "description": "NoTel: Easy Telegram Notification sender for Python and CLI\n===================\n\nNoTel is a simple Telegram notification sender written in Python 3. If you have your own bot token, you can just start using NoTel.\n\n## Installing NoTel\n\nNoTel is hosted on PyPI. To install, run the following command in your Python environment:\n\n```bash\n$ pip install notel\n$ notel --default_token [YOUR_TOKEN] --default_chat_id [YOUR_CHAT_ID]\n```\n\nIf you don't know how to get your own bot token and your chat ID, please follow below links.\n\nAlso, please note that you should start a talk with your bot before sending messages through NoTel.\n\n### Make your own bot and get token\n\nhttps://tutorials.botsfloor.com/creating-a-bot-using-the-telegram-bot-api-5d3caed3266d\n\n### Get your Telegram chat ID\n\nhttps://bigone.zendesk.com/hc/en-us/articles/360008014894-How-to-get-the-Telegram-user-ID-\n\n## Using NoTel\n### Using NoTel in Command Line Interface\n\nAfter you set default token and default chat ID, you can simply send Telegram notification with the command below.\n\n```bash\n$ notel -m Hello\n```\n\n#### Available arguments\n\n- -h, --help show this help message and exit\n- --set_default_id SET_DEFAULT_ID, -di SET_DEFAULT_ID\n set a default Telegram chat id for notel\n- --set_default_token SET_DEFAULT_TOKEN, -dt SET_DEFAULT_TOKEN\n set a default Telegram token for notel\n- --chat_id CHAT_ID, -i CHAT_ID\n set a Telegram chat id to send a message\n- --token TOKEN, -t TOKEN\n set a Telegram bot token to send a message\n- --message MESSAGE, -m MESSAGE\n a message to send to chat id\n- --print_console PRINT_CONSOLE, -p PRINT_CONSOLE\n set notel to print to stdout\n\n### Using NoTel inside Python\nNoTel can be imported as a module to be used directly in Python also.\n```python\nfrom notel import tprint\n\ntprint(\"Hello, world!\")\n```\n\n#### Available arguments\n\n- tprint(msg, token=None, chat_id=None, print_console=True)\n - msg: The message you want to send.\n - token: token of Telegram bot. If token is None, then the default_token will work.\n - chat_id: Chat ID for the user who want to receive the message. If chat_id is None, then the default_chat_id will work.\n - print_console: If print_console is False, tprint will not print msg in your console.\n\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/seyong92/NoTel", "keywords": "", "license": "GPL", "maintainer": "", "maintainer_email": "", "name": "NoTel", "package_url": "https://pypi.org/project/NoTel/", "platform": "", "project_url": "https://pypi.org/project/NoTel/", "project_urls": { "Homepage": "https://github.com/seyong92/NoTel" }, "release_url": "https://pypi.org/project/NoTel/0.1a1/", "requires_dist": [ "python-telegram-bot (>=11.1.0)" ], "requires_python": "", "summary": "easy telegram notification sender for both python and CLI", "version": "0.1a1" }, "last_serial": 5272459, "releases": { "0.1a1": [ { "comment_text": "", "digests": { "md5": "6b6e65ec77a77a6071e203506bc88d86", "sha256": "6794baa391842537171d92a25afb248f2bc4fb7c3f5dfa17da870f64f3aadb9f" }, "downloads": -1, "filename": "NoTel-0.1a1-py3-none-any.whl", "has_sig": false, "md5_digest": "6b6e65ec77a77a6071e203506bc88d86", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 4177, "upload_time": "2019-05-15T13:05:18", "url": "https://files.pythonhosted.org/packages/fb/a2/6d188207bcddea1b3ffa63b5a2f3a3d8d676043198f39728d8186c2dcae9/NoTel-0.1a1-py3-none-any.whl" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "6b6e65ec77a77a6071e203506bc88d86", "sha256": "6794baa391842537171d92a25afb248f2bc4fb7c3f5dfa17da870f64f3aadb9f" }, "downloads": -1, "filename": "NoTel-0.1a1-py3-none-any.whl", "has_sig": false, "md5_digest": "6b6e65ec77a77a6071e203506bc88d86", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 4177, "upload_time": "2019-05-15T13:05:18", "url": "https://files.pythonhosted.org/packages/fb/a2/6d188207bcddea1b3ffa63b5a2f3a3d8d676043198f39728d8186c2dcae9/NoTel-0.1a1-py3-none-any.whl" } ] }