mirror of
https://github.com/vibe-existing/pyfragment.git
synced 2026-07-25 06:54:31 +00:00
chore: update setup-uv action to v7.6.0 in CI and publish workflows; fix image source in README
This commit is contained in:
@@ -20,7 +20,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
python-version: "3.12"
|
python-version: "3.12"
|
||||||
|
|
||||||
- uses: astral-sh/setup-uv@v7.5.0
|
- uses: astral-sh/setup-uv@v7.6.0
|
||||||
|
|
||||||
- run: uv pip install --system ".[dev]"
|
- run: uv pip install --system ".[dev]"
|
||||||
|
|
||||||
@@ -40,7 +40,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
python-version: "3.12"
|
python-version: "3.12"
|
||||||
|
|
||||||
- uses: astral-sh/setup-uv@v7.5.0
|
- uses: astral-sh/setup-uv@v7.6.0
|
||||||
|
|
||||||
- run: uv pip install --system ".[dev]"
|
- run: uv pip install --system ".[dev]"
|
||||||
|
|
||||||
|
|||||||
@@ -52,7 +52,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
python-version: "3.12"
|
python-version: "3.12"
|
||||||
|
|
||||||
- uses: astral-sh/setup-uv@v7.5.0
|
- uses: astral-sh/setup-uv@v7.6.0
|
||||||
|
|
||||||
- run: uv build
|
- run: uv build
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
<div align="center">
|
<div align="center">
|
||||||
<img src="fragment.svg" alt="Fragment Logo" width="120" height="120" style="border-radius: 24px;">
|
<img src="https://www.bohd4n.dev/assets/projects/pyfragment.svg" alt="Fragment Logo" width="120" height="120" style="border-radius: 24px;">
|
||||||
|
|
||||||
<h1 style="margin-top: 24px;">Fragment API</h1>
|
<h1 style="margin-top: 24px;">Fragment API</h1>
|
||||||
|
|
||||||
@@ -82,15 +82,15 @@ async def main() -> None:
|
|||||||
},
|
},
|
||||||
) as client:
|
) as client:
|
||||||
try:
|
try:
|
||||||
# Purchase 6 months of Telegram Premium for a user
|
# Purchase 6 months of Telegram Premium
|
||||||
result = await client.purchase_premium("@username", months=6)
|
result = await client.purchase_premium("@username", months=6)
|
||||||
print(f"{result.months} months of Premium successfully sent to {result.username} | tx: {result.transaction_id}")
|
print(f"{result.months} months of Premium successfully sent to {result.username} | tx: {result.transaction_id}")
|
||||||
|
|
||||||
# Purchase 500 Stars for a user (50–1 000 000)
|
# Purchase 500 Stars
|
||||||
result = await client.purchase_stars("@username", amount=500)
|
result = await client.purchase_stars("@username", amount=500)
|
||||||
print(f"{result.stars} Stars successfully sent to {result.username} | tx: {result.transaction_id}")
|
print(f"{result.stars} Stars successfully sent to {result.username} | tx: {result.transaction_id}")
|
||||||
|
|
||||||
# Top up 10 TON to Telegram Ads balance
|
# Top up 10 TON to Telegram balance
|
||||||
# wallet must hold at least amount + ~0.056 TON for gas
|
# wallet must hold at least amount + ~0.056 TON for gas
|
||||||
result = await client.topup_ton("@username", amount=10)
|
result = await client.topup_ton("@username", amount=10)
|
||||||
print(f"{result.amount} TON successfully sent to {result.username} | tx: {result.transaction_id}")
|
print(f"{result.amount} TON successfully sent to {result.username} | tx: {result.transaction_id}")
|
||||||
|
|||||||
Reference in New Issue
Block a user