Trying to narrow down Telegram odds API bot #65
Unanswered
CryptoZealott
asked this question in
Q&A
Replies: 2 comments 1 reply
-
Hi @CryptoZealott , If you are only interested in NHL events, then we would recommend you to:
Please let us know if this helps, thank you. Regards, |
Beta Was this translation helpful? Give feedback.
1 reply
-
It seems like you're pulling odds for all ice hockey events instead of just NHL games. To filter for NHL games, you need to modify your code to include a condition that checks the league for each event before processing its odds. Here's a suggestion:
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello all, I am trying to finish up my telegram bot script that requests the odds for a certain sports league and posts them in a telegram channel when prompted with a command. However as it stands it is pulling the odds for every event in the certain sport, rather than just the certain sports league.
For example I want it to pull the ice_hockey.winner odds for only NHL games, and not every ice hockey game on Cloudbet. Any help or direction would be greatly appreciated. Code below:
` from datetime import datetime
from pprint import pprint
import time
import pytz
import requests
import telepot
from telepot.loop import MessageLoop
Beta Was this translation helpful? Give feedback.
All reactions