Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mover eventos para a página "Eventos Passados" depois que passar a data #22

Open
felipesanches opened this issue Jan 8, 2019 · 3 comments

Comments

@felipesanches
Copy link
Member

Nas primeiras horas de cada dia, o bot pode verificar quais eventos já aconteceram e:

  • Removê-los da página "Próximos Eventos"
  • Adicioná-los à página "Eventos Passados"
@felipesanches
Copy link
Member Author

talvez algo dessa página seja útil para agendar execução de rotinas em dias/horários específicos:

https://stackoverflow.com/questions/15088037/python-script-to-do-something-at-the-same-time-every-day

@felipesanches
Copy link
Member Author

Esse método é útil para saber se o evento já passou:

d8870d3

@felipesanches
Copy link
Member Author

Para rodar uma rotina diariamente podemos usar essa funcionalidade da API:
https://python-telegram-bot.readthedocs.io/en/latest/telegram.ext.jobqueue.html#telegram.ext.JobQueue.run_daily

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant