Skip to main content

a 🧑‍💻Telegram API🧑‍💻 wrapper

Project description

Curtely v0.0.2 Telegram API wrapper

Change log

  • Added message_handler decoretor and renamed handle_updates to run

Usage

# Here is an example of an easy echo bot
import curtely

TOKEN = "your-token-here"

bot = curtely.TelegramAPI(TOKEN)

@curtely.message_handler(bot)
def message_handler(api: curtely.TelegramAPI, message: curtely.Message):
    api.send_message(message.reply(message.content()))

bot.run()

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

curtely-0.0.2.tar.gz (6.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

curtely-0.0.2-py3-none-any.whl (6.8 kB view details)

Uploaded Python 3

File details

Details for the file curtely-0.0.2.tar.gz.

File metadata

  • Download URL: curtely-0.0.2.tar.gz
  • Upload date:
  • Size: 6.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.2

File hashes

Hashes for curtely-0.0.2.tar.gz
Algorithm Hash digest
SHA256 b9d3171a9710f70907f886edebbdbc87c2fa692212a964e2c43701bbf3cb7efe
MD5 2904c576e6bb1d624c01398f62b6bf52
BLAKE2b-256 f73d63161fc019134c7a1dfed4dd10aca27f3accc0c4f8837c4a1534dcf2fa43

See more details on using hashes here.

File details

Details for the file curtely-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: curtely-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 6.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.2

File hashes

Hashes for curtely-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 269a454a5eee87914764cdd5822366214ee55bd6df0a3a6b8d84b5238a0f377f
MD5 71fd2bd8088bafd70b5ec10db105dfb4
BLAKE2b-256 3a247c8b8cb90cddfe2d0dcd4fa62cdc2bf80b5310eef7204ebe57ab2c24d632

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page