{"id":19720759,"url":"https://github.com/ngthucdotcom/funny-tele-bot","last_synced_at":"2026-06-09T04:31:55.762Z","repository":{"id":180447444,"uuid":"664899298","full_name":"ngthucdotcom/funny-tele-bot","owner":"ngthucdotcom","description":null,"archived":false,"fork":false,"pushed_at":"2023-07-13T06:46:15.000Z","size":9,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-27T23:41:11.043Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ngthucdotcom.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-07-11T02:19:19.000Z","updated_at":"2023-07-11T02:19:26.000Z","dependencies_parsed_at":null,"dependency_job_id":"a13c6054-ff33-42e3-8860-5bb84211a086","html_url":"https://github.com/ngthucdotcom/funny-tele-bot","commit_stats":null,"previous_names":["ngthucdotcom/funny-tele-bot"],"tags_count":0,"template":false,"template_full_name":"ngthucdotcom/nodejs-server","purl":"pkg:github/ngthucdotcom/funny-tele-bot","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ngthucdotcom%2Ffunny-tele-bot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ngthucdotcom%2Ffunny-tele-bot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ngthucdotcom%2Ffunny-tele-bot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ngthucdotcom%2Ffunny-tele-bot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ngthucdotcom","download_url":"https://codeload.github.com/ngthucdotcom/funny-tele-bot/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ngthucdotcom%2Ffunny-tele-bot/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34092253,"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-09T02:00:06.510Z","response_time":63,"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":[],"created_at":"2024-11-11T23:12:27.097Z","updated_at":"2026-06-09T04:31:55.743Z","avatar_url":"https://github.com/ngthucdotcom.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Funny Telegram Bot\n\n## Required\n* You'll need a Telegram user account before you can create a Telegram bot. Head over to [Telegram](https://telegram.org/) and create an account if you don't already have one.\n\n## Register a Telegram bot\nSigned in to Telegram, search for `BotFather` (a bot for managing all other Telegram bots) and start a new chat with it. Follow the steps below to register a new bot with the BotFather:\n* Type `/start` and press send.\n* Type `/newbot` and press send.\n* Choose a name for your bot.\n* Choose a username for your bot that ends in `bot` (e.g: `yourusernamebot`).\n* Type your bot name and bot username (bot username require suffix `bot`, e.g: `yourusernamebot`).\n\nThe BotFather will respond with a message containing an access token for your newly created bot. This access token will allow our application to access the Telegram API and tell our bot what to do when receiving different messages from users.\n\n## Set environment variables\n* Create a `.env` file in the root of the project. You can clone the `.env.example` file and rename it to `.env`.\n* Set the `BOT_TOKEN` variable to the access token you received from the BotFather.\n\n## Install dependencies\nInstall dependencies with yarn:\n```command\nyarn install\n```\n\nIf you don't have yarn installed, you can install it with npm:\n```command\nnpm install -g yarn\n```\n\n## Start ngrok tunnel\nStart ngrok tunnel on port 9090 (default port for this project, you can change it in `server.js`):\n```command\nngrok http 9090\n```\n\nIf you want a custom subdomain of ngrok, you can use `--domain` option:\n```command\nngrok http --domain=yourdomain 9090\n```\n\nIf you haven't installed ngrok, you can download it [here](https://ngrok.com/download) or install it with some package manager like [Homebrew](https://brew.sh/):\n```command\nbrew install ngrok\n```\nor [Chocolatey](https://chocolatey.org/):\n```command\nchoco install ngrok\n```\nor if you are using Linux:\n```command\nsudo snap install ngrok\n```\n\n## Set webhook\nDon't forget to set webhook for your bot. You can do it easily with `setWebhook` via an url:\n```\nhttps://api.telegram.org/bot\u003cYOUR_BOT_TOKEN\u003e/setWebhook?url=\u003cYOUR_NGROK_URL\u003e\n```\n\n## Start bot\nSo, you can start the bot with yarn:\n```command\nyarn start\n```\n\n## Advanced: Set commands for your bot\nYou can set commands for your bot on `BotFather`:\n```\n/setcommands\n```\n\nAnd then, choose your bot and set commands.\n\nThen, you can set commands like this:\n```\ncommand1 - Description for command1\ncommand2 - Description for command2\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fngthucdotcom%2Ffunny-tele-bot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fngthucdotcom%2Ffunny-tele-bot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fngthucdotcom%2Ffunny-tele-bot/lists"}