Пример #1
0
def tweet(status):
    if type(status) == str or type(status) == int:
        if len(status) <= 140:
            api.update_status(status)
        else:
            print('This tweet is too long!')
    else:
        print('This is not a valid status to tweet. Try to be human.')
Пример #2
0
def tweet(status):
	if type(status) == str or type(status) == int:
		if len(status) <= 140:
			api.update_status(status)
		else:
			print('This tweet is too long!')
	else:
		print('This is not a valid status to tweet. Try to be human.')
Пример #3
0
def continuing(status):
    if type(status) == str:
        api.update_status(status, api.me().status.id)
Пример #4
0
def continuing(status):
	if type(status) == str:
		api.update_status(status, api.me().status.id)