This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from telethon import TelegramClient | |
| from telethon.tl.functions.messages import GetHistoryRequest | |
| from datetime import datetime, timedelta, timezone | |
| import asyncio | |
| # Replace with your own API_ID and API_HASH | |
| API_ID = '****' | |
| API_HASH = '****' | |
| CHANNEL_USERNAME = '****' # Example: '@channel_name' |
OlderNewer