Telegram Bot API
🌐 한국어

logOut

카테고리: 봇 정보 · Bot API 10.3 · 공식 문서

클라우드 Bot API 서버에서 로그아웃합니다.

반환값: 성공 시 반환값: True.

매개변수

이 메서드에는 매개변수가 없습니다. 봇 토큰만 있으면 바로 호출할 수 있습니다.

요청 예제

curl

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

Python

import requests

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

JavaScript

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

단계별 가이드: 텔레그램 봇 만들기: @BotFather로 생성하고 첫 메시지 보내기