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.7.tar.gz (2.3 kB view details)

Uploaded Source

File details

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

File metadata

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

File hashes

Hashes for monsgrams-0.7.tar.gz
Algorithm Hash digest
SHA256 52959682a684d4faa12ed14d4690aa202b4cd38f86329a80f1484755df4b139d
MD5 7bf54cc51fa7e808e5b6996e21ca01b8
BLAKE2b-256 e1d001cedb980d6c66ddb789f85c2273925ed47f3fce4bed3ce491aa66832c18

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