Skip to content

Instantly share code, notes, and snippets.

View luanlopesl's full-sized avatar
📊
Thinking

Luan Lopes luanlopesl

📊
Thinking
View GitHub Profile
@luanlopesl
luanlopesl / get_user_photo.py
Created August 31, 2024 08:42
Get information about a Telegram user profile picture image using the Python wrapper for the Telegram Bot API.
import asyncio
import telegram
user_id = 'USER_ID'
api_token = 'API_TOKEN'
async def main():
bot = telegram.Bot(api_token)
async with bot: