diff --git a/bottools/methods.py b/bottools/methods.py index 31f7e28..a6543e0 100644 --- a/bottools/methods.py +++ b/bottools/methods.py @@ -360,7 +360,7 @@ def user(bot, update, args): try: two = bottools.methods.getTwo(update.message) - for status in two.api.user_timeline(args[0], count = args[1]): + for status in two.api.user_timeline(args[0], count = count): tweetMessage(status, update.message.chat_id, bot) except tweepy.error.TweepError as e: