{"id":16486012,"url":"https://github.com/roziscoding/grammy-autoquote","last_synced_at":"2025-03-21T07:31:11.181Z","repository":{"id":48026952,"uuid":"516455849","full_name":"roziscoding/grammy-autoquote","owner":"roziscoding","description":"grammY plugin that forces all sent messages to quote the last received one","archived":false,"fork":false,"pushed_at":"2024-09-19T15:54:23.000Z","size":55,"stargazers_count":6,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-17T11:55:23.322Z","etag":null,"topics":["bot","grammy","grammyjs","hacktoberfest","telegram","telegram-bot"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/roziscoding.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":"2022-07-21T17:02:14.000Z","updated_at":"2024-09-19T15:53:08.000Z","dependencies_parsed_at":"2024-01-24T19:33:21.553Z","dependency_job_id":"0e87f428-8fd7-4099-a6d9-2ea93b0f2fd6","html_url":"https://github.com/roziscoding/grammy-autoquote","commit_stats":{"total_commits":16,"total_committers":3,"mean_commits":5.333333333333333,"dds":0.4375,"last_synced_commit":"4c86a5c9b89571142a5dc86dafa17be2d142d567"},"previous_names":[],"tags_count":15,"template":false,"template_full_name":"grammyjs/plugin-template","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/roziscoding%2Fgrammy-autoquote","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/roziscoding%2Fgrammy-autoquote/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/roziscoding%2Fgrammy-autoquote/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/roziscoding%2Fgrammy-autoquote/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/roziscoding","download_url":"https://codeload.github.com/roziscoding/grammy-autoquote/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244757539,"owners_count":20505415,"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":["bot","grammy","grammyjs","hacktoberfest","telegram","telegram-bot"],"created_at":"2024-10-11T13:28:04.906Z","updated_at":"2025-03-21T07:31:10.881Z","avatar_url":"https://github.com/roziscoding.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Auto quote plugin for grammY\n\nThis plugin provides a convenient way to quote the user's message when replying to them.\n\n## How does it work\n\nThis plugin works by setting `reply_to_message_id` param to the value of `ctx.msg.message_id` for every API method that starts with `send` (except for `sendChatAction`).\n\n## Usage\n\n### Reply Parameters\n\nThe plugin supports specifying the `allow_send_without_reply` parameter, which will allow the bot to send messages without quoting the user's message. To do so, just pass an object to the plugin initializer like so:\n\n```ts\nautoQuote({ allowSendingWithoutReply: true });\n```\n\n### For a single context\n\n```ts\nimport { Bot } from \"grammy\";\nimport { addReplyParam } from \"@roz/grammy-autoquote\";\n\nconst bot = new Bot(\"\");\n\nbot.command(\"demo\", async (ctx) =\u003e {\n  ctx.api.config.use(addReplyParam(ctx));\n  // ctx.api.config.use(addReplyParam(ctx, { allowSendingWithoutReply: true }));\n\n  ctx.reply(\"Demo command!\"); // This will quote the user's message\n});\n\nbot.start();\n```\n\n### For every context\n\n```ts\nimport { Bot } from \"grammy\";\nimport { autoQuote } from \"@roz/grammy-autoquote\";\n\nconst bot = new Bot(\"\");\n\nbot.use(autoQuote());\n// bot.use(autoQuote({ allowSendingWithoutReply: true }));\n\nbot.command(\"demo\", async (ctx) =\u003e {\n  ctx.reply(\"Demo command!\"); // This will quote the user's message\n});\n\nbot.command(\"hello\", async (ctx) =\u003e {\n  ctx.reply(\"Hi there :)\"); // Also quotes the user's message\n});\n\nbot.start();\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Froziscoding%2Fgrammy-autoquote","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Froziscoding%2Fgrammy-autoquote","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Froziscoding%2Fgrammy-autoquote/lists"}