awesome-repositories.com
博客
awesome-repositories.com

通过 AI 驱动的搜索,发现最优秀的开源仓库。

探索精选搜索开源替代品自托管软件博客网站地图
项目关于排名机制媒体报道MCP 服务器
法律隐私政策服务条款
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
·
php-telegram-bot avatar

php-telegram-bot/core

0
View on GitHub↗
4,019 星标·958 分支·PHP·MIT·4 次浏览

Core

该项目是一个 PHP 库和开发工具包,用于构建与 Telegram Bot API 交互的机器人。它提供了一个用于处理用户消息、管理内联查询以及通过 Webhook 和轮询传递媒体内容的框架。

该框架包含一个数据管理层,用于在关系型数据库中存储用户配置文件、聊天记录和机器人状态,以保持会话的连续性。它还具有管理访问限制,以将敏感任务的执行限制为经过验证的用户标识符。

该系统涵盖了一组广泛的功能,包括基于文本模式执行逻辑的命令模式分派、基于中间件的请求过滤,以及符合 API 大小限制的自适应媒体分块。其他实用程序管理远程服务器与本地存储之间的双向文件传输,以及向用户和频道发送自动化广播消息。

Features

  • Telegram Bot Frameworks - Provides a specialized PHP framework for building interactive agents and bots on the Telegram platform.
  • Relational Database Persistence - Persists structured bot data, user profiles, and chat histories in a relational database to maintain state.
  • Relational Database Persistence - Uses relational databases to persist user profiles, chat histories, and bot state for session continuity.
  • Bot State Management - Manages the persistence of bot session data and memory across process lifecycles to maintain user experience.
  • Command and Pattern Routing - Maps specific text patterns and bot commands to predefined handler functions for executing targeted logic.
  • Telegram Webhook Receivers - Receives real-time events from Telegram via HTTP POST webhooks or long-polling to trigger internal logic.
  • Webhook Receivers - Includes a server-side receiver to process real-time updates delivered via Telegram webhooks.
  • PHP Development Toolkits - Provides a comprehensive toolkit of libraries for handling chat messages, inline queries, and media in PHP.
  • Messaging Multimedia Transmission - Facilitates the transmission of diverse media types including text, photos, audio, and video through the Telegram API.
  • Chat Command Triggers - Triggers specific bot actions based on predefined text patterns or command prefixes identified in chat messages.
  • Broadcast Messaging Channels - Enables one-to-many communication by sending messages to all active users, groups, and channels stored in the database.
  • File Transfer Utilities - Provides utilities to move files between remote API servers and local directories via upload and download interfaces.
  • Update Filters - Implements custom filter logic to determine which incoming messaging updates should be processed by specific handlers.
  • Inline Query Interfaces - Provides a framework for handling real-time user queries and returning interactive results via Telegram inline requests.
  • Telegram File Transfers - Provides a standardized layer for transferring files between Telegram servers and local storage.
  • Administrative Security - Restricts sensitive command execution and management tasks to a verified list of administrator user IDs.
  • Request Filtering Middleware - Uses a middleware layer to intercept and filter incoming updates before they reach primary handlers.
  • Bot Frameworks - PHP library based on the Bot API.

Star 历史

php-telegram-bot/core 的 Star 历史图表php-telegram-bot/core 的 Star 历史图表

AI 搜索

探索更多 awesome 仓库

用简单的语言描述您的需求 —— AI 将根据相关性为您从数千个精选开源项目中进行排序。

Start searching with AI

Core 的开源替代方案

相似的开源项目,按与 Core 的功能重合度排序。
  • tucnak/telebottucnak 的头像

    tucnak/telebot

    4,565在 GitHub 上查看↗

    Telebot is a framework for building interactive bots using the Telegram Bot API. It provides a type-safe API wrapper and an asynchronous event handler to manage messages, commands, and user interactions. The project features a middleware-based request interception system and pattern-based event routing to map triggers to custom logic. It includes a dedicated inline query engine for generating real-time suggested results and an interactive keyboard builder for creating custom reply and inline buttons. The framework covers a broad range of capabilities, including rich media management for albu

    Go
    在 GitHub 上查看↗4,565
  • pyrogram/pyrogrampyrogram 的头像

    pyrogram/pyrogram

    4,614在 GitHub 上查看↗

    Pyrogram is an asynchronous Python framework for interacting with the Telegram MTProto API. It serves as both a bot framework and a user client library, providing a concrete implementation of the MTProto protocol for secure communication with Telegram servers. The library distinguishes itself by providing a high-level wrapper layer that abstracts complex protocol methods into Python functions, while still allowing for the execution of raw API functions and low-level peer resolution. It supports multi-client concurrency, enabling the management of several user or bot identities within a single

    Python
    在 GitHub 上查看↗4,614
  • go-telegram-bot-api/telegram-bot-apigo-telegram-bot-api 的头像

    go-telegram-bot-api/telegram-bot-api

    6,379在 GitHub 上查看↗

    This is a Go package that wraps the Telegram Bot API, providing a client library for building automated bot applications. It handles the core tasks of authenticating a bot with an API token and then sending messages or receiving updates through either long-polling or webhooks. The library supports sending text and media messages to Telegram chats, with the ability to reply to specific messages in a conversation. For receiving updates, it offers both a configurable long-polling loop that processes updates as they arrive and a webhook receiver that accepts incoming HTTPS requests from Telegram

    Gogolanghacktoberfesttelegram
    在 GitHub 上查看↗6,379
  • danog/madelineprotodanog 的头像

    danog/MadelineProto

    3,344在 GitHub 上查看↗

    MadelineProto is an asynchronous PHP library that provides a programmatic interface for interacting with the Telegram API using the MTProto protocol, the same protocol used by official Telegram clients. It functions as both a Telegram bot SDK and a userbot automation library, enabling PHP applications to connect to Telegram as either a bot account or a regular user account, sending and receiving messages, media, and other data directly without relying on the Bot API intermediary. The library is built on an event-driven architecture with Amp v3 fiber-based concurrency, allowing for non-blockin

    PHPamphpasyncbot
    在 GitHub 上查看↗3,344
查看 Core 的所有 30 个替代方案→

常见问题解答

php-telegram-bot/core 是做什么的?

该项目是一个 PHP 库和开发工具包,用于构建与 Telegram Bot API 交互的机器人。它提供了一个用于处理用户消息、管理内联查询以及通过 Webhook 和轮询传递媒体内容的框架。

php-telegram-bot/core 的主要功能有哪些?

php-telegram-bot/core 的主要功能包括:Telegram Bot Frameworks, Relational Database Persistence, Bot State Management, Command and Pattern Routing, Telegram Webhook Receivers, Webhook Receivers, PHP Development Toolkits, Messaging Multimedia Transmission。

php-telegram-bot/core 有哪些开源替代品?

php-telegram-bot/core 的开源替代品包括: tucnak/telebot — Telebot is a framework for building interactive bots using the Telegram Bot API. It provides a type-safe API wrapper… pyrogram/pyrogram — Pyrogram is an asynchronous Python framework for interacting with the Telegram MTProto API. It serves as both a bot… go-telegram-bot-api/telegram-bot-api — This is a Go package that wraps the Telegram Bot API, providing a client library for building automated bot… danog/madelineproto — MadelineProto is an asynchronous PHP library that provides a programmatic interface for interacting with the Telegram… eternnoir/pytelegrambotapi — pyTelegramBotAPI is a Python framework and API wrapper designed for building bots that interact with the Telegram Bot… aiogram/aiogram — aiogram is an asynchronous framework for building Telegram bots in Python. It provides a complete toolkit for…