get_group_chat_history
Get the chat history of a channel or group.
Signature
async def get_group_chat_history(group_id:str, community_id: str, user_id:int =None, page_limit:int=100, page_offset:int=0) -> List[Message]:
Parameters
group_id(str): The ID of the groupcommunity_id(str): The ID of the communityuser_id(int): The ID of the userpage_limit(int): The maximum number of messages to returnpage_offset(int): The offset of the first message to return
tip
There is an analogous method for getting the chat history of a channel: get_channel_chat_history.