mirror of
https://github.com/dreamhunter2333/cloudflare_temp_email.git
synced 2026-04-26 06:15:52 +03:00
[PR #442] [MERGED] feat: telegram Set manually to avoid implicit call in or #577
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/cloudflare_temp_email#577
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/dreamhunter2333/cloudflare_temp_email/pull/442
Author: @dreamhunter2333
Created: 9/9/2024
Status: ✅ Merged
Merged: 9/9/2024
Merged by: @dreamhunter2333
Base:
main← Head:feature/dev📝 Commits (1)
c5e6c97feat: telegram Set manually to avoid implicit call in or📊 Changes
12 files changed (+42 additions, -6 deletions)
View changed files
📝
CHANGELOG.md(+4 -0)📝
frontend/package.json(+1 -1)📝
pages/package.json(+1 -1)📝
vitepress-docs/docs/en/cli.md(+2 -0)📝
vitepress-docs/docs/zh/guide/cli/worker.md(+2 -0)📝
vitepress-docs/package.json(+1 -1)📝
worker/package.json(+1 -1)📝
worker/src/constants.ts(+1 -1)📝
worker/src/telegram_api/telegram.ts(+6 -1)📝
worker/src/types.d.ts(+1 -0)📝
worker/src/utils.ts(+20 -0)📝
worker/wrangler.toml.template(+2 -0)📄 Description
User description
#441
PR Type
Enhancement, Documentation
Description
botInfofrom environment variableTG_BOT_INFOand setbot.botInfoif available to reduce latency.getJsonObjectValueutility function to parse JSON values.Bindingstype to includeTG_BOT_INFO.TG_BOT_INFOenvironment variable in both English and Chinese documentation.Changes walkthrough 📝
telegram.ts
Set Telegram bot info from environment variable to reduce latencyworker/src/telegram_api/telegram.ts
botInfofrom environment variableTG_BOT_INFO.bot.botInfoifbotInfois available to reduce latency.getJsonObjectValueutility function.types.d.ts
Add TG_BOT_INFO to Bindings typeworker/src/types.d.ts
TG_BOT_INFOtoBindingstype.utils.ts
Add utility function to parse JSON valuesworker/src/utils.ts
getJsonObjectValueutility function to parse JSON values.CHANGELOG.md
Update changelog with new bot info featureCHANGELOG.md
cli.md
Document TG_BOT_INFO environment variablevitepress-docs/docs/en/cli.md
TG_BOT_INFOenvironment variable.worker.md
Document TG_BOT_INFO environment variable in Chinesevitepress-docs/docs/zh/guide/cli/worker.md
TG_BOT_INFOenvironment variable in Chinese.wrangler.toml.template
Add TG_BOT_INFO to configuration templateworker/wrangler.toml.template
TG_BOT_INFOto configuration template.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.