开发文档

Telegram 接口参考:方法与类型索引

在 GetTGAPI 查找 Telegram API、TDLib 与 Bot API 方法和类型,按名称搜索并打开对应官方签名与参数说明。

GetTGAPI 编辑团队更新于
文档解读核对日期

来源版本 a94b83d67ab4 · TDLib contributors · BSL-1.0

依据官方资料整理,由 GetTGAPI 独立维护。 文档目录与术语表 →

本页内容
  1. 先选择你使用的接口
  2. 查参数时核对版本

先选择你使用的接口

Bot API 使用 HTTPS 接口;TDLib 是客户端库;Telegram API schema 面向客户端协议。名字相似的方法也不能混用参数、ID 或鉴权方式。

下方目录收录固定版本 TDLib 仓库中的方法与构造器,以及本次核对的 Bot API 方法和对象名称。它是接口索引:完整参数说明仍应通过条目打开对应官方文档,索引条数不等于文章数量。

查参数时核对版本

TDLib 和 Telegram schema 条目指向固定提交中的原始声明。Bot API 条目指向官方文档当前章节,更新可查看页首的 Bot API changelog。两者更新节奏不同,不应把同名字段当成跨版本兼容保证。

按方法名检索后,继续检查参数可选性、返回类型、权限、错误和状态更新。未知结果应先核验,不直接增加重复请求。

找到 6481 项参考

按组展开,或输入准确名称查找;点击条目查看官方定义。

Bot API · 方法185
Bot API · 类型400
TDLib · 方法1065
TDLib · 构造器2260
Telegram API · 方法856
Telegram API · 构造器1715
原文许可与归属 · BSL-1.0

TDLib contributors · 完整许可文件

Boost Software License - Version 1.0 - August 17th, 2003

Permission is hereby granted, free of charge, to any person or organization
obtaining a copy of the software and accompanying documentation covered by
this license (the "Software") to use, reproduce, display, distribute,
execute, and transmit the Software, and to prepare derivative works of the
Software, and to permit third-parties to whom the Software is furnished to
do so, all subject to the following:

The copyright notices in the Software and this entire statement, including
the above license grant, this restriction and the following disclaimer,
must be included in all copies of the Software, in whole or in part, and
all derivative works of the Software, unless such copies or derivative
works are solely in the form of machine-executable object code generated by
a source language processor.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT
SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE
FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE,
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
DEALINGS IN THE SOFTWARE.