@@ -573,16 +573,21 @@ def revoke_users_token(self, user_ids, before):
573573 )
574574 self .update_users_partial (updates )
575575
576- def export_channel (self , channel_id : str , channel_type : str , messages_since : str = None ,
577- messages_until = None ):
576+ def export_channel (
577+ self ,
578+ channel_type ,
579+ channel_id ,
580+ messages_since = None ,
581+ messages_until = None ,
582+ ):
578583 """
579584 Requests a channel export
580- :param channel_id: channel_id of channel which needs to be exported
581585 :param channel_type: channel_type of channel which needs to be exported
586+ :param channel_id: channel_id of channel which needs to be exported
582587 :param messages_since: RFC-3339 string or datetime to filter messages since that time, optional
583588 :param messages_until: RFC-3339 string or datetime to filter messages until that time, optional
584- :type channel_id: str
585589 :type channel_type: str
590+ :type channel_id: str
586591 :type messages_since: Union[str, datetime.datetime]
587592 :type messages_until: Union[str, datetime.datetime]
588593 """
@@ -597,24 +602,24 @@ def export_channel(self, channel_id: str, channel_type: str, messages_since: str
597602 "id" : channel_id ,
598603 "type" : channel_type ,
599604 "messages_since" : messages_since ,
600- "messages_until" : messages_until
605+ "messages_until" : messages_until ,
601606 }
602607 ]
603608 )
604609
605- def export_channels (self , channels_data : list ):
610+ def export_channels (self , channels ):
606611 """
607612 Requests a channels export
608- :param channels_data: list of channel's data which need to be exported with keys:
609- - `channel_id`: str
613+ :param channels: list of channel's data which need to be exported with keys:
610614 - `channel_type`: str
615+ - `channel_id`: str
611616 - `messages_since` (optional, nullable): str
612617 - `messages_until` (optional, nullable): str
613- :type channels_data : List[Dict[str, str]]
618+ :type channels : List[Dict[str, str]]
614619 """
615- return self .post ("export_channels" , data = {"channels" : channels_data })
620+ return self .post ("export_channels" , data = {"channels" : channels })
616621
617- def get_export_channel_status (self , task_id : str ):
622+ def get_export_channel_status (self , task_id ):
618623 """
619624 Retrieves status of export
620625 :param task_id: task_id of task which status needs to be retrieved
0 commit comments