@@ -7,9 +7,9 @@ Telegram channel metadata and message history.
77<details markdown =" 1 " ><summary >Sync</summary >
88
99``` python
10- from datamaxi import Telegram
10+ from datamaxi import Datamaxi
1111
12- telegram = Telegram (api_key = " YOUR_API_KEY" )
12+ telegram = Datamaxi (api_key = " YOUR_API_KEY" ).telegram
1313
1414channels, _ = telegram.channels(category = " korean" , limit = 50 )
1515messages, next_request = telegram.messages(channel_name = " yunlog_announcement" , limit = 50 )
@@ -23,13 +23,13 @@ more_messages, _ = next_request()
2323
2424``` python
2525import asyncio
26- from datamaxi.aio import AsyncTelegram
26+ from datamaxi.aio import AsyncDatamaxi
2727
2828
2929async def main ():
30- async with AsyncTelegram (api_key = " YOUR_API_KEY" ) as telegram :
31- channels, _ = await telegram.channels(category = " korean" , limit = 50 )
32- messages, next_request = await telegram.messages(
30+ async with AsyncDatamaxi (api_key = " YOUR_API_KEY" ) as client :
31+ channels, _ = await client. telegram.channels(category = " korean" , limit = 50 )
32+ messages, next_request = await client. telegram.messages(
3333 channel_name = " yunlog_announcement" , limit = 50
3434 )
3535
0 commit comments