Skip to content

Commit

Permalink
v1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
jcolladosp committed Jun 22, 2016
1 parent fbfb2e5 commit fd15add
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# film-rating-bot
Telegram bot using the Python API that gets films rating from IMDb and metacritic
* The inline version uses a API for the placeholders generator
* The inline version uses an API for the placeholder generator (https://placehold.it/)
5 changes: 2 additions & 3 deletions bot_inline.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def query_text(inline_query):
@bot.message_handler(commands=['start'])
def command_start(m):
cid = m.chat.id
bot.send_message(cid, "Just write in any Telegram chat @filmratingbot nameofthefilm to get the search")
bot.send_message(cid, "Just write in any Telegram chat @filmratingbot nameofthefilm and you will get a search with films and series. Enjoy it!")


@bot.message_handler(commands=['code'])
Expand All @@ -70,5 +70,4 @@ def command_code(m):

bot.polling(none_stop=True)
while True:
time.sleep(
300) # Hacemos que duerma durante un periodo largo de tiempo para que la CPU no esté trabajando innecesáremente.
time.sleep(300) # Hacemos que duerma durante un periodo largo de tiempo para que la CPU no esté trabajando innecesáremente.

0 comments on commit fd15add

Please sign in to comment.