Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/python-3.x/16.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python 如何解决泛洪等待错误等待结果_Python_Python 3.x_Python 2.7 - Fatal编程技术网

Python 如何解决泛洪等待错误等待结果

Python 如何解决泛洪等待错误等待结果,python,python-3.x,python-2.7,Python,Python 3.x,Python 2.7,任何人都可以帮助我如何解决它我想这样做,如果出现这种情况,如何使它被重新启动或使时间睡眠和自动继续 我的剧本是这样的 加入频道 试试这个 @client.on(events.NewMessage(chats=dogeclick_channel, incoming=True)) async def join_start(event): message = event.raw_text if 'You must join' in message: channel_

任何人都可以帮助我如何解决它我想这样做,如果出现这种情况,如何使它被重新启动或使时间睡眠和自动继续

我的剧本是这样的

加入频道 试试这个

@client.on(events.NewMessage(chats=dogeclick_channel, incoming=True))
async def join_start(event):
    message = event.raw_text
    if 'You must join' in message:  
        channel_name = re.search(r'You must join @(.*?) to earn', message).group(1)
        print_msg_time(f'Joining @{channel_name}...')

        # joining
        await client(JoinChannelRequest(channel_name))
        print_msg_time(f'Verifying...')
@client.on(events.NewMessage(chats=dogeclick_channel, incoming=True))
async def join_start(event):
    message = event.raw_text
    if 'You must join' in message:  
        channel_name = re.search(r'You must join @(.*?) to earn', message).group(1)
        print_msg_time(f'Joining @{channel_name}...')

        # joining
        await client(JoinChannelRequest(channel_name))
        print_msg_time(f'Verifying...')
async def join_start(event):
    if True :
        try:
            message = event.raw_text
            if 'You must join' in message:  
                channel_name = re.search(r'You must join @(.*?) to earn', message).group(1)
                print_msg_time(f'Joining @{channel_name}...')
                hidden = random. randrange(20, 45)
                print_msg_time('Sending /join command')
                time.sleep(hidden)
                await client(JoinChannelRequest(channel_name))
                # Join the channel
                print_msg_time(f'Verifying...')
                
                # Clicks the joined
                await client(GetBotCallbackAnswerRequest(
                    peer=url_channel,
                    msg_id=event.message.id,
                    data=event.message.reply_markup.rows[0].buttons[1].data
                ))
        except errors.FloodWaitError as e:
            print('Flood wait for ', e.seconds)
            exit