removeBusinessAccountProfilePhoto
Xóa ảnh đại diện của tài khoản doanh nghiệp.
Giá trị trả về: Nếu thành công, trả về True.
Tham số
| Tham số | Kiểu | Bắt buộc | Mô tả |
|---|---|---|---|
business_connection_id | String | Có | ID kết nối doanh nghiệp |
is_public | Boolean | Tùy chọn | Xóa ảnh công khai thay vì ảnh chính |
Ví dụ request
curl
curl -s -X POST "https://api.telegram.org/bot$TOKEN/removeBusinessAccountProfilePhoto" \
-H "Content-Type: application/json" \
-d '{"business_connection_id":"BUSINESS_CONNECTION_ID"}'
Python
import requests
TOKEN = "123456789:AAEexampleTokenReplaceWithYours"
resp = requests.post(
f"https://api.telegram.org/bot{TOKEN}/removeBusinessAccountProfilePhoto",
json={
"business_connection_id": "BUSINESS_CONNECTION_ID"
},
timeout=30,
)
print(resp.json())
JavaScript
const TOKEN = "123456789:AAEexampleTokenReplaceWithYours";
const res = await fetch(`https://api.telegram.org/bot${TOKEN}/removeBusinessAccountProfilePhoto`, {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify({
"business_connection_id": "BUSINESS_CONNECTION_ID"
}),
});
console.log(await res.json());
Hướng dẫn từng bước: Cách tạo bot Telegram từ A đến Z: BotFather, token và tin nhắn đầu tiên
Phương thức liên quan
getBusinessAccountStarBalanceTrả về số dư Stars của tài khoản doanh nghiệp.getBusinessAccountGiftsTrả về quà tặng của tài khoản doanh nghiệp.transferBusinessAccountStarsChuyển Stars từ tài khoản doanh nghiệp sang số dư của bot.readBusinessMessageĐánh dấu tin nhắn đến là đã đọc thay mặt tài khoản doanh nghiệp.deleteBusinessMessagesXóa tin nhắn thay mặt tài khoản doanh nghiệp.setBusinessAccountNameĐặt tên cho tài khoản doanh nghiệp.setBusinessAccountUsernameĐặt username cho tài khoản doanh nghiệp.setBusinessAccountBioĐặt tiểu sử cho tài khoản doanh nghiệp.setBusinessAccountProfilePhotoĐặt ảnh đại diện cho tài khoản doanh nghiệp.setBusinessAccountGiftSettingsCấu hình cài đặt quà tặng của tài khoản doanh nghiệp.