{"id":24080025,"url":"https://github.com/dacrol/telegraf-anycase-commands","last_synced_at":"2026-06-10T18:31:22.611Z","repository":{"id":114707594,"uuid":"116520928","full_name":"Dacrol/telegraf-anycase-commands","owner":"Dacrol","description":"Makes Telegraf bot commands case insensitive","archived":false,"fork":false,"pushed_at":"2018-01-08T15:17:45.000Z","size":32,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-04-26T14:45:51.490Z","etag":null,"topics":["javascript","middleware","telegraf","telegram","telegram-bot"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/telegraf-anycase-commands","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/Dacrol.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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":"2018-01-06T22:44:59.000Z","updated_at":"2019-09-24T20:21:35.000Z","dependencies_parsed_at":null,"dependency_job_id":"42fd298d-bf3e-4885-ae49-11808405ffcd","html_url":"https://github.com/Dacrol/telegraf-anycase-commands","commit_stats":{"total_commits":9,"total_committers":1,"mean_commits":9.0,"dds":0.0,"last_synced_commit":"9138a06723d6ffa5fb5f0529f88ff2bc86905807"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Dacrol%2Ftelegraf-anycase-commands","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Dacrol%2Ftelegraf-anycase-commands/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Dacrol%2Ftelegraf-anycase-commands/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Dacrol%2Ftelegraf-anycase-commands/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Dacrol","download_url":"https://codeload.github.com/Dacrol/telegraf-anycase-commands/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240953479,"owners_count":19884024,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["javascript","middleware","telegraf","telegram","telegram-bot"],"created_at":"2025-01-09T22:41:00.556Z","updated_at":"2026-06-10T18:31:22.568Z","avatar_url":"https://github.com/Dacrol.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Anycase commands for Telegraf\n\nMakes [Telegraf](http://telegraf.js.org/) bot commands case insensitive. For example /Command will be recognized as the same as /command.  \n  \n  \n### [Installation](https://www.npmjs.com/package/telegraf-anycase-commands):\n```\n$ npm install telegraf-anycase-commands\nor\n$ yarn add telegraf-anycase-commands\n```\n\n### Usage:\n```javascript\nconst AnyCase = require('telegraf-anycase-commands')\n\nconst bot = new Telegraf(process.env.BOT_TOKEN)\n// Or:\nconst bot = new Composer()\n\n// Then:\nAnyCase.apply(bot)\n\n// Or simply:\nconst bot = AnyCase.apply(new Telegraf(process.env.BOT_TOKEN))\n// Or:\nconst bot = AnyCase.apply(new Composer())\n```\n\nOr if you only want to use the middleware for commands in incoming messages, without applying it on commands in your code: \n\n```javascript\nbot.use(AnyCase.lowercase())\n```\nNote that this will only convert incoming commands to lowercase, and commands have to be defined in lowercase in the code to match.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdacrol%2Ftelegraf-anycase-commands","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdacrol%2Ftelegraf-anycase-commands","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdacrol%2Ftelegraf-anycase-commands/lists"}