{"id":18702586,"url":"https://github.com/mayocream/ask_mayo_bot","last_synced_at":"2025-04-12T08:51:32.884Z","repository":{"id":103328609,"uuid":"127848727","full_name":"mayocream/ask_mayo_bot","owner":"mayocream","description":"Telegram 上的类似 ask.fm 的提问 / 留言板。","archived":false,"fork":false,"pushed_at":"2018-05-09T12:55:26.000Z","size":250,"stargazers_count":7,"open_issues_count":0,"forks_count":5,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-10T10:06:56.786Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"PHP","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/mayocream.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-04-03T04:01:17.000Z","updated_at":"2023-07-25T14:16:07.000Z","dependencies_parsed_at":null,"dependency_job_id":"b03adff0-d0a1-43bd-97ed-702c08b60740","html_url":"https://github.com/mayocream/ask_mayo_bot","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mayocream%2Fask_mayo_bot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mayocream%2Fask_mayo_bot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mayocream%2Fask_mayo_bot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mayocream%2Fask_mayo_bot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mayocream","download_url":"https://codeload.github.com/mayocream/ask_mayo_bot/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248543882,"owners_count":21121838,"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":[],"created_at":"2024-11-07T11:46:22.926Z","updated_at":"2025-04-12T08:51:32.879Z","avatar_url":"https://github.com/mayocream.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 简介   \nTelegram 上的类似 ask.fm 的提问 / 留言板。  \n可以选择公开或私密 🍓   \n\n\\*更新：后台完全匿名。  \n\n乃们有想对我说的话/提问吗：      \nhttp://t.me/ask_mayo_bot   \n\n# 部署一个\n\n运行环境：PHP + Nginx / Apache  \n需要 HTTPS。  \n可以是虚拟主机。   \n\n## 创建 Bot\n\n在 Telegram 上找 @botfather 创建一个，修改好 ID、昵称、头像、BIO 等，再复制好 API Token。    \n\n## 创建频道\n\n用于 Bot 自动发送公共留言。   \n需要在频道-\u003e成员-\u003e管理员（手机版才能看到），输入 Bot 的 ID，查找后添加成管理员，才有发文权限。    \n\n## 部署代码   \n\n$ git clone https://github.com/mayocream/ask_mayo_bot    \n$ cd ask_mayo_bot  \n\n修改目录下 `config.example` 文件，并重命名为 `config`  \n（若有空格需要添加引号 `\"`）      \n\nBOT_API_TOKEN 填写 Telegram Bot Api Token       \nMASTER_NAME 填写 你的昵称，替换“真夜”    \nMASTER_USER_ID 在 Telegram @ask_mayo_bot 对话窗输入 /user_id，把返回的数字填进去    \nCHANNAL_ID 频道 ID，格式是 @ask_mayo，注意带 at 符号    \n\n\\*更新增加修改文字部分。  \n\n用 Git 或 FTP 上传到服务器。  \n（推荐使用  Herokuapp 比较方便）  \n\n部署有问题可以联系我。  \n\n## 设置 Webhook\n\n直接用浏览器访问    \n`https://api.telegram.org/bot\u003cAPI_Token\u003e/setWebhook?url=https://\u003cYour_Domain\u003e/public/web.php`  \n\n`\u003cAPI_Token\u003e` 替换为 Bot Api Token。  \n`\u003cYour_Domain\u003e` 替换成你的域名。  \n\n访问后会返回 Json 提示已设置。   \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmayocream%2Fask_mayo_bot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmayocream%2Fask_mayo_bot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmayocream%2Fask_mayo_bot/lists"}