Telegram Bot API
🌐 中文

removeMyProfilePhoto

分类: 机器人信息 · Bot API 10.3 · 官方文档

移除机器人的头像。

返回值: 调用成功时返回 True。

参数

此方法没有参数,直接用 Bot Token 调用即可。

请求示例

curl

curl -s "https://api.telegram.org/bot$TOKEN/removeMyProfilePhoto"

Python

import requests

TOKEN = "123456789:AAEexampleTokenReplaceWithYours"
resp = requests.get(f"https://api.telegram.org/bot{TOKEN}/removeMyProfilePhoto", timeout=30)
print(resp.json())

JavaScript

const TOKEN = "123456789:AAEexampleTokenReplaceWithYours";
const res = await fetch(`https://api.telegram.org/bot${TOKEN}/removeMyProfilePhoto`);
console.log(await res.json());

分步教程: Telegram 机器人教程:从零创建 Telegram 机器人并发送第一条消息