Skip to content

Commit

Permalink
FIX: Removed unused arguments in functions (HarshCasper#1268)
Browse files Browse the repository at this point in the history
  • Loading branch information
johanvanderkuijl authored Nov 10, 2021
1 parent a778bfd commit f1ca2ed
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Python/Movie-Info-Telegram-Bot/bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
# context. Error handlers also receive the raised TelegramError object in error.


def start(update, context):
def start(update):
"""Send a message when the command /start is issued."""
update.message.reply_text(
"What can this bot do?\n\nThis bot gives brief information about any movie from IMDb website"
Expand All @@ -32,12 +32,12 @@ def start(update, context):
)


def help(update, context):
def help(update):
"""Send a message when the command /help is issued."""
update.message.reply_text("Help!")


def genre(update, context):
def genre(update):
"""Send a list of movies when the command /genre is issued."""
url = "https://www.imdb.com/search/title/"
genre = str(update.message.text)[7:]
Expand Down Expand Up @@ -65,7 +65,7 @@ def genre(update, context):
update.message.reply_text(stri)


def name(update, context):
def name(update):
"""Send the first 3 search results of the movie name in IMDb site when the command /name is issued."""
movie = str(update.message.text)[6:]
print(movie)
Expand Down

0 comments on commit f1ca2ed

Please sign in to comment.