{"id":18131585,"url":"https://github.com/aldrinjenson/tg-querysearchbot","last_synced_at":"2026-06-20T04:31:00.437Z","repository":{"id":44791008,"uuid":"380784414","full_name":"aldrinjenson/tg-querySearchBot","owner":"aldrinjenson","description":"Telegram bot to make easy internet queries without leaving telegram. ","archived":false,"fork":false,"pushed_at":"2022-01-24T13:13:02.000Z","size":82,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-11T23:28:02.966Z","etag":null,"topics":["aws-lambda","nodejs","serverless","telegram-bot"],"latest_commit_sha":null,"homepage":"https://t.me/querySearchBot","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/aldrinjenson.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-06-27T16:11:57.000Z","updated_at":"2021-11-15T18:40:53.000Z","dependencies_parsed_at":"2022-07-25T02:02:16.292Z","dependency_job_id":null,"html_url":"https://github.com/aldrinjenson/tg-querySearchBot","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/aldrinjenson/tg-querySearchBot","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aldrinjenson%2Ftg-querySearchBot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aldrinjenson%2Ftg-querySearchBot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aldrinjenson%2Ftg-querySearchBot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aldrinjenson%2Ftg-querySearchBot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aldrinjenson","download_url":"https://codeload.github.com/aldrinjenson/tg-querySearchBot/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aldrinjenson%2Ftg-querySearchBot/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34557551,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-20T02:00:06.407Z","response_time":98,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["aws-lambda","nodejs","serverless","telegram-bot"],"created_at":"2024-11-01T12:08:13.382Z","updated_at":"2026-06-20T04:31:00.413Z","avatar_url":"https://github.com/aldrinjenson.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# tg-querySearchBot\n\n### A bot for querying the internet directly from Telegram, written in nodeJS\n\nEnter any query after a /qs for the top 3 results.\neg: /qs Software development best practices\n\nYou can get the top 1 result using /qs1 search_term\neg: /qs1 Nikola Tesla\n\nYou can also add this bot to groups and query using the same 2 commands\n\nTo try, check out [@querySearchBot](https://t.me/querySearchBot)\n\n### Development\n\n- The bot runs using serverless framework in AWS Lambda with Telegram webhooks\n- For setting up webooks easily, refer this [article](https://xabaras.medium.com/setting-your-telegram-bot-webhook-the-easy-way-c7577b2d6f72)\n  OR\n  - GET webhook info: https://api.telegram.org/bot{BOT_TOKEN}/getWebhookInfo\n  - SET Webhook: https://api.telegram.org/bot{BOT_TOKEN}/setWebhook?url={POST_url_received_after_lambda_deployment}\n  - Delete Webhook: https://api.telegram.org/bot{BOT_TOKEN}/deleteWebhook\n\n#### Some gotchas to keep in mind\n\n- Serverless Lambda supports only NodeJS v12 for now. Any later features like conditional chaining in later versions of node is not currently supported.\n- It is important that you return an object with statusCode 200 so that telegram understands that the query has been successfully answered.\n- when you want to send JSON, ensure that you send it after stringifying it first\n- For sending URLs sometime you may get the error `TypeError: Request path contains unescaped characters` which can be fixed using [this answer](https://stackoverflow.com/a/62437210/11879596)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faldrinjenson%2Ftg-querysearchbot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faldrinjenson%2Ftg-querysearchbot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faldrinjenson%2Ftg-querysearchbot/lists"}