deleteAllMessageReactions
그룹/슈퍼그룹에서 반응을 최대 10000개까지 삭제합니다 (Bot API 10.0).
반환값: 성공 시 반환값: True.
매개변수
| 매개변수 | 타입 | 필수 | 설명 |
|---|---|---|---|
chat_id | Integer or String | 예 | 채팅 ID 또는 @username |
user_id | Integer | 선택 | 반응을 모두 삭제할 사용자 ID |
actor_chat_id | Integer | 선택 | 반응을 모두 삭제할 채팅 ID |
요청 예제
curl
curl -s -X POST "https://api.telegram.org/bot$TOKEN/deleteAllMessageReactions" \
-H "Content-Type: application/json" \
-d '{"chat_id":123456789}'
Python
import requests
TOKEN = "123456789:AAEexampleTokenReplaceWithYours"
resp = requests.post(
f"https://api.telegram.org/bot{TOKEN}/deleteAllMessageReactions",
json={
"chat_id": 123456789
},
timeout=30,
)
print(resp.json())
JavaScript
const TOKEN = "123456789:AAEexampleTokenReplaceWithYours";
const res = await fetch(`https://api.telegram.org/bot${TOKEN}/deleteAllMessageReactions`, {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify({
"chat_id": 123456789
}),
});
console.log(await res.json());
단계별 가이드: 텔레그램 봇 만들기: @BotFather로 생성하고 첫 메시지 보내기
관련 메서드
getChat채팅 정보를 가져옵니다.getChatMember채팅 멤버 정보를 가져옵니다.getChatMemberCount채팅 멤버 수를 반환합니다.getChatAdministrators채팅 관리자 목록을 반환합니다.setChatTitle채팅 제목을 설정합니다.setChatDescription채팅 설명을 설정합니다.setChatPhoto채팅 사진을 설정합니다.deleteChatPhoto채팅 사진을 삭제합니다.setChatPermissions채팅 권한을 설정합니다.leaveChat채팅에서 나갑니다.exportChatInviteLink채팅의 기본 초대 링크를 새로 발급합니다.createChatInviteLink초대 링크를 생성합니다.