Esempio n. 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.')
Esempio n. 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.')
Esempio n. 3
0
def continuing(status):
    if type(status) == str:
        api.update_status(status, api.me().status.id)
Esempio n. 4
0
def continuing(status):
	if type(status) == str:
		api.update_status(status, api.me().status.id)