feat: update terminology from "gift" to "purchase" for Telegram Premium and Stars; enhance README and example scripts

This commit is contained in:
bohd4nx
2026-03-16 01:14:12 +02:00
parent 67f8a882c2
commit 520153dfb1
5 changed files with 22 additions and 16 deletions
+2 -2
View File
@@ -1,5 +1,5 @@
"""
Example: gift Telegram Premium to a user.
Example: purchase Telegram Premium for a user.
Supported durations: 3, 6, or 12 months.
Set show_sender=False to send anonymously.
@@ -34,7 +34,7 @@ async def main() -> None:
print(f"Invalid parameters: {e}")
return
print("Premium gifted")
print("Premium purchased")
print(" %-14s %s" % ("Username:", result.username))
print(" %-14s %s months" % ("Duration:", result.months))
print(" %-14s %s" % ("Transaction:", result.transaction_id))
+2 -2
View File
@@ -1,5 +1,5 @@
"""
Example: gift Telegram Stars to a user.
Example: purchase Telegram Stars for a user.
Amount must be an integer between 50 and 1 000 000.
Set show_sender=False to send anonymously.
@@ -34,7 +34,7 @@ async def main() -> None:
print(f"Invalid parameters: {e}")
return
print("Stars gifted")
print("Stars purchased")
print(" %-14s %s" % ("Username:", result.username))
print(" %-14s %s" % ("Stars:", result.stars))
print(" %-14s %s" % ("Transaction:", result.transaction_id))