This commit is contained in:
Remy Moll
2020-08-15 15:46:35 +02:00
parent b2bb728c09
commit 1d958a5b09
4 changed files with 8 additions and 3 deletions

View File

@@ -10,7 +10,7 @@ def query(params):
try:
res = googlesearch.search(param_string.replace("+"," ") ,num=5,start=0,stop=5)
send_string = "Google search for <b>" + param_string.replace("+"," ") + "</b>:\n"
send_string = "Results for <b>" + param_string.replace("+"," ") + "</b>:\n\n"
for url in res:
send_string += url + "\n\n"
send_string += "Search url:\n" + search_url

View File

@@ -136,6 +136,7 @@ class TelegramIO():
self.persistence.increment("messages_sent")
def send_photo(self, url, caption):
print("SENDING PHOTO: " + url)
data = {