公告 && 支持应用

LinkDing
Docker Mailserver
Pixman
DeepLX API
Cookie Cloud
Telegram Bot Api

Signed-off-by: 萌森 <qyg2297248353@163.com>
This commit is contained in:
2024-07-29 17:26:39 +08:00
parent ff3ff2a1ba
commit 70849058f9
21 changed files with 340 additions and 18 deletions
+46
View File
@@ -0,0 +1,46 @@
additionalProperties:
formFields:
- default: "/home/telegram-bot-api"
edit: true
envKey: TELEGRAM_BOT_API_ROOT_PATH
labelZh: 数据持久化路径
labelEn: Data persistence path
required: true
type: text
- default: 8082
edit: true
envKey: PANEL_APP_PORT_HTTP
labelZh: API 端口
labelEn: API port
required: true
rule: paramPort
type: number
- default: 8081
edit: true
envKey: PANEL_APP_PORT_HTTPS
labelZh: API 端口 (HTTPS)
labelEn: API port (HTTPS)
required: true
rule: paramPort
type: number
- default: ""
edit: true
envKey: TELEGRAM_API_ID
labelZh: Telegram Bot 应用 ID
labelEn: Telegram Bot Application ID
required: true
type: text
- default: ""
edit: true
envKey: TELEGRAM_API_HASH
labelZh: Telegram Bot 应用 Hash
labelEn: Telegram Bot Application Hash
required: true
type: password
- default: ""
edit: true
envKey: TELEGRAM_PROXY
labelZh: 网络代理
labelEn: Network proxy
required: false
type: text
@@ -0,0 +1,31 @@
version: "3.8"
networks:
1panel-network:
external: true
services:
telegram-bot-api:
image: aiogram/telegram-bot-api:7.7
container_name: ${CONTAINER_NAME}
labels:
createdBy: "Apps"
restart: always
networks:
- 1panel-network
ports:
- ${PANEL_APP_PORT_HTTPS}:8081
- ${PANEL_APP_PORT_HTTP}:8082
env_file:
- /etc/1panel/envs/global.env
- ${ENV_FILE:-/etc/1panel/envs/default.env}
volumes:
- ${TELEGRAM_BOT_API_ROOT_PATH}/data:/var/lib/telegram-bot-api
- ${TELEGRAM_BOT_API_ROOT_PATH}/logs:/var/log/telegram-bot-api
environment:
- TELEGRAM_STAT=1
- TELEGRAM_LOCAL=1
- TELEGRAM_VERBOSITY=1
- TELEGRAM_MAX_WEBHOOK_CONNECTIONS=100000
- TELEGRAM_LOG_FILE=/var/log/telegram-bot-api/telegram-bot-api.log
- TELEGRAM_MAX_CONNECTIONS=1024
+15
View File
@@ -0,0 +1,15 @@
#!/bin/bash
if [ -f .env ]; then
source .env
# setup-1 add default values
CURRENT_DIR=$(pwd)
sed -i '/^ENV_FILE=/d' .env
echo "ENV_FILE=${CURRENT_DIR}/.env" >> .env
echo "Check Finish."
else
echo "Error: .env file not found."
fi
@@ -0,0 +1,10 @@
#!/bin/bash
if [ -f .env ]; then
source .env
echo "Check Finish."
else
echo "Error: .env file not found."
fi
@@ -0,0 +1,15 @@
#!/bin/bash
if [ -f .env ]; then
source .env
# setup-1 add default values
CURRENT_DIR=$(pwd)
sed -i '/^ENV_FILE=/d' .env
echo "ENV_FILE=${CURRENT_DIR}/.env" >> .env
echo "Check Finish."
else
echo "Error: .env file not found."
fi
+40
View File
@@ -0,0 +1,40 @@
# Telegram Bot API 服务器
Telegram Bot API 提供了一个 HTTP API 用于创建电报机器人。
机器人是小应用程序完全在 Telegram 应用程序中运行。用户通过以下方式与机器人交互灵活的接口可以支持任何类型的任务或服务。
## 特性
+ 下载文件没有大小限制。
+ 上传最多 2000 MB 的文件。
+ 使用本地路径上传文件并文件 URI 方案。
+ 使用 Webhook 的 HTTP URL。
+ 使用 Webhook 的任何本地 IP 地址。
+ 使用 Webhook 的任何端口。
+ 放最大网络钩子连接数最多 100000。
+ 接收绝对本地路径作为值文件路径字段,无需下载文件后获取文件要求。
Telegram Bot API 服务器仅接受 HTTP 请求,因此需要使用 TLS 终止代理来处理远程 HTTPS 请求。
## 使用说明
### 获取 `api_id`
为了获得API ID并使用 Telegram API 开发您自己的应用程序,您需要执行以下操作:
+ 使用任何应用程序注册 Telegram。
+ 登录您的 Telegram 核心: [https://my.telegram.org](https://my.telegram.org) 。
+ 去《API开发工具》并填写表格。
+ 您将获得基本地址以及 `api_id``api_hash` 用户授权所需的参数。
+ 目前每个号码只能有一个 `api_id` 连接到它。
我们将向您在此过程中使用的电话号码发送重要的开发者通知,因此请使用连接到您的活跃 Telegram 帐户的最新号码。
### 使用 `api_id`
在使用 MTProto Telegram API 之前,请注意,所有 API 客户端库都受到严格监控,以防止滥用。
如果您使用 Telegram API 进行洪泛、垃圾邮件、伪造订阅者和查看频道计数器,您将被 `永久禁止`
由于过度滥用 Telegram API,所有帐户使用非官方 Telegram API 客户端注册或登录的用户会自动放入在监视下以避免违反规定服务条款。
+18
View File
@@ -0,0 +1,18 @@
name: Telegram Bot Api
title: Telegram Bot API 服务器
description: Telegram Bot API 服务器
additionalProperties:
key: telegram-bot-api
name: Bark
tags:
- Middleware
- Tool
- Local
shortDescZh: Telegram Bot API 服务器
shortDescEn: Telegram Bot API Server
type: tool
crossVersionUpdate: true
limit: 0
website: https://telegram.org/
github: https://github.com/tdlib/telegram-bot-api/
document: https://core.telegram.org/bots/
Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB