S
S
Sergey Kolesnik2021-10-07 20:35:15
Python
Sergey Kolesnik, 2021-10-07 20:35:15

How to implement in python in a telegram bot?

Good day) I'm still a beginner, I'm writing a telegram bot, increasing the functionality, so I need help in implementing one of the functions. The function is that when you press the "On this day" button, an event will appear according to the date (for example, March 32 was the first contact with the Martians in Vologda, and so on). Scoring 365 events is laborious and one event per day is extremely small, so a more automated process of this business is needed, I repeat that I am a beginner, I google badly, and did not find anything suitable, and I ask for help from such majestic gentlemen like you.
615f2f9862d5b026137536.jpeg

Answer the question

In order to leave comments, you need to log in

3 answer(s)
D
Danila Kravchenko, 2021-10-08
@Sergey_418

Parsing information from sites using a library for writing bots: aiogram
You can do the same with jokes, or upload the database of jokes to the
Horoscope database, this is a simple generator, you can find a similar element on YouTube, I saw how a guy in python makes a horoscope generator .

H
HemulGM, 2021-10-07
@HemulGM

Learn python, learn how bots work, learn Telegram Bot API for python.
There will be no questions after this.

L
LXSTVAYNE, 2021-10-08
@lxstvayne

You can try to parse information about the current date from somewhere, maybe from Wikipedia.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question