An enhanced Python SDK for Telegram Web Apps (TWA), providing easy access to user data and Telegram Bot API functionality.
- Easy access to TWA user data
- Integration with Telegram Bot API
- Utility functions for common TWA operations
pip install teledeveloperz
from teledeveloperz import TWASDK
import asyncio
# Initialize the SDK with the TWA init data
sdk = TWASDK(web_app_init_data)
# Access user information
print(sdk.user.get_full_name())
# Make API calls
async def get_bot_info():
bot_info = await sdk.get_bot_info()
print('Bot info:', bot_info)
asyncio.run(get_bot_info())
To set up the project for development:
- Clone the repository
- Install dependencies:
pip install -r requirements.txt
- Run tests:
pytest tests/