2nd Final Project in API Programming
This project is closely related to telegram bots, which themselves have an important role in teaching and learning activities in a classroom. This bot can perform task inventory periodically. This bot is built with the help of a platform called pythonanywhere
. In this project, the program creator uses python version 3.6
because it is known to have advantages in syntax. The purpose of this project is to help lecturers or teachers in taking inventory of their students' assignments and anticipate errors that might occur, namely forgetting to recap, this is due to the busy messaging activities in a class social media group, in this case telegram.
Part | Description |
---|---|
Features | • Reply Keyboard • Inline Keyboard • Error Handling • Inventory • User Log Activity |
Platform | Pythonanywhere |
Library | • telebot • datetime |
Code | Python 3.6 |
-
There are menu options that can be accessed by clicking or typing.
-
It can also detect incoming files or documents and notify the sender directly.
-
Another ability of this bot is that it can provide notification to the bot owner that someone has accessed a certain menu, so that the bot owner can monitor the movements that occur directly.
-
This bot can address both group users and non-group users.
-
There is problem control in the system, if the message does not match the command it will be redirected to the
/help
command.
-
Download this repository and extract it.
-
Register for a
pythonanywhere account
:https://www.pythonanywhere.com/registration/register/beginner/
-
Login to
pythonanywhere account
. -
Create a new directory on the
pythonanywhere platform
by clicking onFiles
at the top -> Type in theDirectories
section:KelasApi
-> ClickNew directory
. -
Then upload
Bot-InventarisTugas.py
by clicking theUpload a file
button. -
Return to the previous page, which is at
/home/[pythonanywhere username]
-> Click onOpen Bash console here
. -
Then type this in the console in rotation:
mkvirtualenv myvirtualenv --python=/usr/bin/python3
pip install pytelegrambotapi
pip install datetime
cd KelasApi
python3 Bot-InventarisTugas.py
-
Enjoy [Done].
• Pay attention to writing good and correct syntax because python is case sensitive.
• Make sure your PC/Laptop is connected to the internet.
Telegram Bot | Pythonanywhere | ||||
---|---|---|---|---|---|
Via Telegram: @inventaristugas_bot
If this work is useful to you, then support this work as a form of appreciation to the author by clicking the ⭐Star
button at the top of the repository.
This application is my own work and is not the result of plagiarism from other people's research or work, except those related to third party services which include: libraries, frameworks, and so on.
MIT License - Copyright © 2020 - Devan C. M. Wijaya
Permission is hereby granted without charge to any person obtaining a copy of this software and the software-related documentation files to deal in them without restriction, including without limitation the right to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons receiving the Software to be furnished therewith on the following terms:
The above copyright notice and this permission notice must accompany all copies or substantial portions of the Software.
IN ANY EVENT, THE AUTHOR OR COPYRIGHT HOLDER HEREIN RETAINS FULL OWNERSHIP RIGHTS. THE SOFTWARE IS PROVIDED AS IS, WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED, THEREFORE IF ANY DAMAGE, LOSS, OR OTHERWISE ARISES FROM THE USE OR OTHER DEALINGS IN THE SOFTWARE, THE AUTHOR OR COPYRIGHT HOLDER SHALL NOT BE LIABLE, AS THE USE OF THE SOFTWARE IS NOT COMPELLED AT ALL, SO THE RISK IS YOUR OWN.