logOut
클라우드 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로 생성하고 첫 메시지 보내기
관련 메서드
getMe봇 정보를 반환합니다.getMyCommands현재 봇 명령어 목록을 반환합니다.setMyCommands봇 명령어 목록을 설정합니다.deleteMyCommands봇 명령어를 삭제합니다.getMyName봇 이름을 반환합니다.setMyName봇 이름을 설정합니다.getMyDescription봇 설명을 반환합니다.setMyDescription봇 설명을 설정합니다.getMyShortDescription봇의 짧은 설명을 반환합니다.setMyShortDescription봇의 짧은 설명을 설정합니다.setMyProfilePhoto봇 프로필 사진을 설정합니다.removeMyProfilePhoto봇 프로필 사진을 삭제합니다.