{ "info": { "author": "Jaewoong", "author_email": "jaewoong.go@gmail.com", "bugtrack_url": null, "classifiers": [ "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.2", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6" ], "description": "# lambdagram\n\nlambdagram is the library to help who want to create telegram bot with [official telegram bot api](https://core.telegram.org/bots/api) using webhook on AWS lambda.\n\n## Introduction\n\nMain target of this library is who want to create telegram bot using webhook simply and easily. Especially for AWS lambda platform. Because AWS lambda do not allow to use polling mechanism for infinite loops. Just sending and receiving message through webhook. Not a big deal. But I believe this pretty helpful for someone who telegram and AWS lambda newbies.\n\n## Installing\n\n~~~\npip install lamdbgram\n~~~ \n\n## Telegram API support\n\n- getMe\n- setWebhook\n- getWebhookInfo\n- deleteWebhook\n\n## Key function the lambdagram support\n\n- send_message(self, event, msg, options...) - Efficient way, but you must set webhook before use this method using web browser.\n (https://api.telegram.org/bot{TOKEN}/setWebhook?url={WEBHOOKURL}, remove '{' and '}')\n- send_message(self, event, msg, webhook_url, options...) - Inefficient way, but it's useful for beginners.\n\n## How to use\n\n~~~\nfrom lambdagram.bot import Bot\n\n\nTOKEN = \"THE TOKEN YOU GOT FROM @BotFather\"\n\ndef lambda_handler(event, context): # Basic function signature on AWS lambda \n\n bot = Bot(TOKEN)\n bot.send_message(event, \"THE MESSAGE YOU WANT TO SEND\")\n~~~\n\nor\n\n~~~\nfrom lambdagram.bot import Bot\n\n\nWEBHOOK = \"https://YOUR-WEBHOOK-URL\"\nTOKEN = \"THE TOKEN YOU GOT FROM @BotFather\"\n\ndef lambda_handler(event, context): # Basic function signature on AWS lambda \n\n bot = Bot(TOKEN)\n bot.send_message(event, \"THE MESSAGE YOU WANT TO SEND\", WEBHOOK)\n~~~\n\n\n\n", "description_content_type": null, "docs_url": null, "download_url": "https://pypi.org/project/lambdagram/#files", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/jwkcp/lambdagram", "keywords": "telegram,aws,lambda", "license": "", "maintainer": "", "maintainer_email": "", "name": "lambdagram", "package_url": "https://pypi.org/project/lambdagram/", "platform": "", "project_url": "https://pypi.org/project/lambdagram/", "project_urls": { "Download": "https://pypi.org/project/lambdagram/#files", "Homepage": "https://github.com/jwkcp/lambdagram" }, "release_url": "https://pypi.org/project/lambdagram/0.9.4/", "requires_dist": [ "requests" ], "requires_python": ">=3", "summary": "telegram bot wrapper with webhook for aws lambda", "version": "0.9.4" }, "last_serial": 3664361, "releases": { "0.9": [ { "comment_text": "", "digests": { "md5": "e1ccfc23a3022925fc1bd2edd179ea9b", "sha256": "3689a68949a8c5a5cf0f8452e80eee4eb8bf8fd4a966fc35734c461af58f0642" }, "downloads": -1, "filename": "lambdagram-0.9-py3-none-any.whl", "has_sig": false, "md5_digest": "e1ccfc23a3022925fc1bd2edd179ea9b", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3", "size": 4832, "upload_time": "2018-03-10T17:44:39", "url": "https://files.pythonhosted.org/packages/85/2c/4fcd2490069bd33f5ec98e2739af34f26816647e2a83a7560960c226d89d/lambdagram-0.9-py3-none-any.whl" } ], "0.9.1": [ { "comment_text": "", "digests": { "md5": "02a3785a158718a9cce472093d8ac00e", "sha256": "6ee1fc33087797c8926a8e93d2855a3b391606723e94de987cef879ae980da20" }, "downloads": -1, "filename": "lambdagram-0.9.1-py3-none-any.whl", "has_sig": false, "md5_digest": "02a3785a158718a9cce472093d8ac00e", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3", "size": 5263, "upload_time": "2018-03-11T16:51:17", "url": "https://files.pythonhosted.org/packages/4b/81/d47611d7e9bff84992236c575f5864f3479a4fed20bf3feb7c558e07f7eb/lambdagram-0.9.1-py3-none-any.whl" } ], "0.9.2": [ { "comment_text": "", "digests": { "md5": "eb0f1b6f7161941d04d8a535523c6ac9", "sha256": "c2e06c240757f1bdfd70255a869f3cf551b7b6320db6a98d5ab9377570de6324" }, "downloads": -1, "filename": "lambdagram-0.9.2-py3-none-any.whl", "has_sig": false, "md5_digest": "eb0f1b6f7161941d04d8a535523c6ac9", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3", "size": 5282, "upload_time": "2018-03-11T17:39:56", "url": "https://files.pythonhosted.org/packages/4a/fe/c7ee194cb6c1adbd7a4b862fc7c2c5b43c468f13829017ac2fce8d00a1d9/lambdagram-0.9.2-py3-none-any.whl" } ], "0.9.3": [ { "comment_text": "", "digests": { "md5": "8317540a9c98f6214be03158b1b2c286", "sha256": "c59c9639c413d71b58cd20dac5b581a53375b08366f2e3eefa4ccd4a4b798d1a" }, "downloads": -1, "filename": "lambdagram-0.9.3-py3-none-any.whl", "has_sig": false, "md5_digest": "8317540a9c98f6214be03158b1b2c286", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3", "size": 5709, "upload_time": "2018-03-12T04:42:21", "url": "https://files.pythonhosted.org/packages/09/14/3c29efae23c257530adc6f968d39715d36759b336408c1993073bf0047d8/lambdagram-0.9.3-py3-none-any.whl" } ], "0.9.4": [ { "comment_text": "", "digests": { "md5": "1e9a54842e85b660a24ab6ebf075eda7", "sha256": "8f90719f204c3bc4e6607cfff5f50a19b57c8a1f3fca0d86c55af54f8a734c84" }, "downloads": -1, "filename": "lambdagram-0.9.4-py3-none-any.whl", "has_sig": false, "md5_digest": "1e9a54842e85b660a24ab6ebf075eda7", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3", "size": 5810, "upload_time": "2018-03-13T07:14:23", "url": "https://files.pythonhosted.org/packages/ce/16/37117c757c9e5d3a7ead01bdde271f762e93278341309a21f983411f8c19/lambdagram-0.9.4-py3-none-any.whl" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "1e9a54842e85b660a24ab6ebf075eda7", "sha256": "8f90719f204c3bc4e6607cfff5f50a19b57c8a1f3fca0d86c55af54f8a734c84" }, "downloads": -1, "filename": "lambdagram-0.9.4-py3-none-any.whl", "has_sig": false, "md5_digest": "1e9a54842e85b660a24ab6ebf075eda7", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3", "size": 5810, "upload_time": "2018-03-13T07:14:23", "url": "https://files.pythonhosted.org/packages/ce/16/37117c757c9e5d3a7ead01bdde271f762e93278341309a21f983411f8c19/lambdagram-0.9.4-py3-none-any.whl" } ] }