Telegram bot for notifications for Computer Science students at Mathematics and Mechanics department (2017).
- open this channel and enjoy
If you don't want to get notifications from our public group or want to set your own, you need then do the following:
- Create your bot with @BotFather
- In bot.py file change
PUBLICS
,LINKS
andSOURCES
. - Create config.py file and write there:
VK_API_TOKEN
- how to get, described here (it's easy)TELE_TOKEN
- token of that @BotFather gave youCHANNEL_NAME
@Your_chanel_name- if you don't have one, create and add this bot as admin of the channel
- Install requirements
pip install -r requirements.txt
- Seems like you are good to go)
- If you want to schedule your posts, set
SINGLE_RUN
toTrue
- If you want to run this script in infinite loop, set
SINGLE_RUN
toFalse
- Add matmech website to check list (DONE)
- Modify this bot, so that one doesn't have to set all paremeters by hand.
- Add some other stuff (timetable, trains, e.t.c.)
- duno how, for now
- In parsing of notifications from website, add filter for irrelevant news (like, not for our group)
- Add named entity recognition
- Move to server (mb here)
- Add "do not disturb" from 24 till 6 o'clock
- Don't notify over mmspbu and some irrelevant classes of news. (DONE)
- Make better formatted text with markdown
- Need smarter way to find #hashtags (DONE)