Update app.py
Browse files
app.py
CHANGED
|
@@ -73,7 +73,7 @@ async def process(state):
|
|
| 73 |
buffer = [] # accumulate rows here
|
| 74 |
shard_idx = state["total_shards"]
|
| 75 |
|
| 76 |
-
async with Client(SESSION,
|
| 77 |
# iterate all messages in channel
|
| 78 |
async for msg in app.get_chat_history(CHANNEL):
|
| 79 |
# only process zip file messages
|
|
|
|
| 73 |
buffer = [] # accumulate rows here
|
| 74 |
shard_idx = state["total_shards"]
|
| 75 |
|
| 76 |
+
async with Client(SESSION, session_string=SESSION_STRING, api_id=API_ID, api_hash=API_HASH) as app:
|
| 77 |
# iterate all messages in channel
|
| 78 |
async for msg in app.get_chat_history(CHANNEL):
|
| 79 |
# only process zip file messages
|