GetAdminLog
---functions--- channels.getAdminLog#33ddf480 channel:InputChannel q:string events_filter:flags.0?ChannelAdminLogEventsFilter admins:flags.1?Vector<InputUser> max_id:long min_id:long limit:int = channels.AdminLogResults
Returns
| channels.AdminLogResults |
Parameters
| channel | InputChannel | required |
| q | string | required |
| events_filter | ChannelAdminLogEventsFilter | optional |
| admins | Vector<InputUser> | optional |
| max_id | long | required |
| min_id | long | required |
| limit | int | required |
Example
The examples below use placeholder values. Replace them with real data before running the code.
▶ Minimal
import asyncio
from ferogram import Client
app = Client("my_session", api_id=12345, api_hash="0123456789abcdef0123456789abcdef")
async def main():
await app.start()
result = await app.raw.channels.GetAdminLog(
channel='username',
q='some string here',
max_id=0,
min_id=0,
limit=100
)
print(result)
asyncio.run(main())
The minimal example uses Ferogram's raw proxy shorthand. Peers can be passed as strings and required primitives get safe defaults. Expand Full API to see every parameter.
▶ Full API
import asyncio
from ferogram import Client, raw
app = Client("my_session", api_id=12345, api_hash="0123456789abcdef0123456789abcdef")
async def main():
await app.start()
result = await app(raw.functions.channels.GetAdminLog(
channel=raw.types.InputPeerSelf(),
q='some string here',
events_filter=raw.types.ChannelAdminLogEventsFilter(),
admins=[raw.types.InputPeerSelf()],
max_id=0,
min_id=0,
limit=100
))
print(result)
asyncio.run(main())