Skip to content

Commit f1ca2ed

Browse files
FIX: Removed unused arguments in functions (#1268)
1 parent a778bfd commit f1ca2ed

File tree

1 file changed

+4
-4
lines changed
  • Python/Movie-Info-Telegram-Bot

1 file changed

+4
-4
lines changed

Python/Movie-Info-Telegram-Bot/bot.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
# context. Error handlers also receive the raised TelegramError object in error.
2424

2525

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

3434

35-
def help(update, context):
35+
def help(update):
3636
"""Send a message when the command /help is issued."""
3737
update.message.reply_text("Help!")
3838

3939

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

6767

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

0 commit comments

Comments
 (0)