Telebot
Note: This is not pyTelegramBotAPI, but do to often confusion I have included it within this package. So if you accidentally install this instead of pyTelegramBotAPI the examples, etc will still work.
This originally was telegram bot library, with simple route decorators, and will now be imported as telebot_router, to separate pyTelegramBotAPI and this package from collision.
Currently a work in progress, doesn’t do much now, but will register and send messages.
Example Setup
from telebot_router import TeleBot
app = TeleBot(__name__)
@app.route('/command ?(.*)')
def example_command(message, cmd):
chat_dest = message['chat']['id']
msg = "Command Recieved: {}".format(cmd)
app.send_message(chat_dest, msg)
@app.route('(?!/).+')
def parrot(message):
chat_dest = message['chat']['id']
user_msg = message['text']
msg = "Parrot Says: {}".format(user_msg)
app.send_message(chat_dest, msg)
if __name__ == '__main__':
app.config['api_key'] = 'xxxxxxxx:enterYourBotKeyHereToTest'
app.poll(debug=True)
Metadata
Release files for telebot 0.0.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| telebot-0.0.5.tar.gz | 4.8 kB | Without provenance | Details for telebot-0.0.5.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| telebot-0.0.5-py3-none-any.whl | Python 3 | none | any | Details for telebot-0.0.5-py3-none-any.whl |
Total release size: 9.6 kB
Release files / telebot-0.0.5.tar.gz
| Download URL | telebot-0.0.5.tar.gz |
|---|---|
| Size | 4.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
848a5885b57247b65edd0e92647b4372ebd8d41611dca3f344788c11deac2571
|
|
BLAKE2b-256 checksum How to use checksums |
1f3be4188cffaf370f432f15d518cbb53a438200ee7ef68c6db1acab337634e1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.4
|
Release files / telebot-0.0.5-py3-none-any.whl
| Download URL | telebot-0.0.5-py3-none-any.whl |
|---|---|
| Size | 4.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
50327c240243480d40ade4ea5bea4f464bf57d4ff000ea669fcd705396074863
|
|
BLAKE2b-256 checksum How to use checksums |
ad2fd8d669be86c42dd2075d7b25bb6de73a3181661a79ef6a3c53dc811f17a1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.4
|
Security for telebot 0.0.5
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.