slack_transfer.functions.upload.data_insert#
- slack_transfer.functions.upload.data_insert(client: UploaderClientABC, channel_name: str, old_members_dict: Dict[str, str], old_members_icon_url_dict: Optional[Dict[str, str]] = None, old_channel_name: Optional[str] = None, time_zone: str = 'Asia/Tokyo', progress: Union[bool, tqdm] = True) str[source]#
upload messages, files, reactions, and pins.
- Parameters
client (UploaderClientABC) – uploader client. If use this via any UploaderClient Class, self is automatically set. Thus, ignore this.
channel_name (str) – channel name wanted to be checked.
old_members_dict (Dict[str, str]) – a dictionary between old user id and old user preview name. (Old means the original WS) key is 9-digit string if and value is the preview user name.
old_members_icon_url_dict (Dict[str, str]]; Optional; default=None) – a dictionary between old user id and old user icon url. key is 9-digit string if and value is url.
old_channel_name (str; Optional; default=None) – old channel name. It required to find the stored data.
time_zone (str; Optional; default=Asia/Tokyo) – time zone to preview the original post data on the destination WS. See: https://dateutil.readthedocs.io/en/stable/tz.html
progress (Union[bool, tqdm.tqdm]; Optional; default=True) – set progress bar. progress bar will be updated each time one message is processed. You can set progress bar from outside this method if you want to make the whole progress bar beyond each progress of each channel. If you set it to boolean, it is understood as if you want to show a progress bar only for this processing.
- Yields
str – channel id (9-digit string)