Telegram Bot API
🌐 Türkçe

getStarTransactions

Kategori: Ödemeler · Bot API 10.3 · Resmi dokümantasyon

Botun Telegram Stars işlemlerini döndürür.

Dönüş değeri: Başarılı olduğunda StarTransactions döndürür.

Parametreler

ParametreTürZorunluAçıklama
offsetIntegerİsteğe bağlıSayfalama ofseti
limitIntegerİsteğe bağlıİşlem sayısı (1-100)

Parametre açıklamaları kısa özetlerdir; tam metin için resmi dokümantasyona bakın.

Örnek istek

curl

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

Python

import requests

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

JavaScript

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

Adım adım rehber: Telegram bot nasıl yapılır? BotFather ile adım adım bot oluşturma