Skip to main content

A simple Python library for creating telegram bot.

Project description

This library provides interesting opportunities for creating telegram bots. convenient syntax, decorators.

EXAMPLE USE!

bot = Bot("7181251700:AAF26R-70RNWYXprybRMqtthnTRjJU7LeNM")

@bot.command("start")
async def start_command(context):
    await context.bot.send_message(context.chat_id, f"Hello! I am bot. How are you? User ID: {context.from_user_id}, Chat Type: {context.chat_type}")

async def main():
    await bot.polling_loop()

if __name__ == "__main__":
    asyncio.run(main())

DOCS - WRITING.

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

monsgrams-0.9.tar.gz (2.4 kB view details)

Uploaded Source

File details

Details for the file monsgrams-0.9.tar.gz.

File metadata

  • Download URL: monsgrams-0.9.tar.gz
  • Upload date:
  • Size: 2.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.11.8

File hashes

Hashes for monsgrams-0.9.tar.gz
Algorithm Hash digest
SHA256 48f10b13bd753ea20b8d29b86c035fadfa76d76e36d4c66b1bca6199fe235a65
MD5 adfe14fba55d38d005cdc39e8b31f7e4
BLAKE2b-256 74e5afd1d3fc72f146f7b4086ad643a9f56dc902dba5073c690ea159cfc0a1f0

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