Skip to content

Commit

Permalink
V2.0: Implement full resolution API
Browse files Browse the repository at this point in the history
Signed-off-by: starry69 <starry369126@outlook.com>
  • Loading branch information
starry-shivam committed May 7, 2020
1 parent c675b0c commit 226a205
Showing 1 changed file with 10 additions and 11 deletions.
21 changes: 10 additions & 11 deletions starrybot.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,15 +118,15 @@ def wall(update, context):
else:
pickrandom = random.choice(list(hits)) # Random hits
hits = pickrandom
preview = hits.get('webformatURL')
preview = hits.get('largeImageURL')
views = hits.get('views')
downloads = hits.get('downloads')
likes = hits.get('likes')
author = hits.get('user')
authid = hits.get('user_id')
tags = hits.get('tags')
imgurl = hits.get('pageURL')
document = hits.get('largeImageURL')
document = hits.get('imageURL')

keyboard = [[
InlineKeyboardButton(text="PageLink 🌐", url=imgurl),
Expand Down Expand Up @@ -193,15 +193,15 @@ def wallcolor(update, context):
else:
pickrandom = random.choice(list(hits)) # Random hits
hits = pickrandom
preview = hits.get('webformatURL')
preview = hits.get('largeImageURL')
views = hits.get('views')
downloads = hits.get('downloads')
likes = hits.get('likes')
author = hits.get('user')
authid = hits.get('user_id')
tags = hits.get('tags')
imgurl = hits.get('pageURL')
document = hits.get('largeImageURL')
document = hits.get('imageURL')

keyboard = [[
InlineKeyboardButton(text="PageLink 🌐", url=imgurl),
Expand Down Expand Up @@ -243,15 +243,15 @@ def editorschoice(update, context):
hits = contents.get('hits')
pickrandom = random.choice(list(hits)) # Random hits
hits = pickrandom
preview = hits.get('webformatURL')
preview = hits.get('largeImageURL')
views = hits.get('views')
downloads = hits.get('downloads')
likes = hits.get('likes')
author = hits.get('user')
authid = hits.get('user_id')
tags = hits.get('tags')
imgurl = hits.get('pageURL')
document = hits.get('largeImageURL')
document = hits.get('imageURL')

keyboard = [[
InlineKeyboardButton(text="PageLink 🌐", url=imgurl),
Expand Down Expand Up @@ -293,15 +293,15 @@ def randomwalls(update, context):
hits = contents.get('hits')
pickrandom = random.choice(list(hits)) # Random hits
hits = pickrandom
preview = hits.get('webformatURL')
preview = hits.get('largeImageURL')
views = hits.get('views')
downloads = hits.get('downloads')
likes = hits.get('likes')
author = hits.get('user')
authid = hits.get('user_id')
tags = hits.get('tags')
imgurl = hits.get('pageURL')
document = hits.get('largeImageURL')
document = hits.get('imageURL')

keyboard = [[
InlineKeyboardButton(text="PageLink 🌐", url=imgurl),
Expand Down Expand Up @@ -337,7 +337,7 @@ def colors(update, context):
Hello {mention_html(
update.effective_user.id,
update.effective_user.full_name
)
)
}
here are the list of color filters you can use:
× <code>grayscale</code>, <code>blue</code>.
Expand All @@ -355,13 +355,12 @@ def colors(update, context):
@run_async
@send_action(ChatAction.TYPING)
def about(update, context):
user = update.effective_user
chat = update.effective_chat
ABOUT_STR = f"""
Hello {mention_html(
update.effective_user.id,
update.effective_user.full_name
)
)
}
I'm a simple wallpapers bot which
gives you stunning free images & royalty free stock wallpapers from <a href="https://pixabay.com/">pixabay</a>.
Expand Down

0 comments on commit 226a205

Please sign in to comment.