Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
.idea
env
venv
__pycache__/
10 changes: 6 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,10 @@ https://telegram.me/dividendquerybot
Read stock ticker symbol and queries for dividend data

### Dependencies
BeautifulSoup4
* BeautifulSoup4
* python-telegram-bot
* cachetools
* requests

python-telegram-bot

cachetools
### How to add your bot
https://telegra.ph/Awesome-Telegram-Bot-11-11
File renamed without changes.
4 changes: 2 additions & 2 deletions dividendbot.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@ def main():
#read config file
config = configparser.ConfigParser()
config.read('config.ini')
tid = config['ID']['telegram']
token_id = config['ID']['telegram']

"""Run the bot."""
global update_id
# Telegram Bot Authorization Token
bot = telegram.Bot(tid)
bot = telegram.Bot(token_id)

# get the first pending update_id, this is so we can skip over it in case
# we get an "Unauthorized" exception.
Expand Down
7 changes: 4 additions & 3 deletions requirement.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
python-telegram-bot==10.1.0
beautifulsoup4==4.6.0
cachetools==3.1.1
python-telegram-bot==13.9
beautifulsoup4==4.10.0
cachetools==4.2.2
requests==2.26.0