File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Python/Movie-Info-Telegram-Bot Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 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 \n This 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 )
You can’t perform that action at this time.
0 commit comments