
Research
/Security News
Popular Tinycolor npm Package Compromised in Supply Chain Attack Affecting 40+ Packages
Malicious update to @ctrl/tinycolor on npm is part of a supply-chain attack hitting 40+ packages across maintainers
This project allows you to create asynchrounous Telegram Bots using Python 3.
At the moment the API is sparse, feel free to add more methods via Pull Requests or submit Issues.
Get the source using git
git clone https://github.com/naim94a/atbot.git
Install using pip
pip install atbot
import os
import asyncio
from atbot import TelegramBot, TelegramMessage, ChatAction
API_KEY = os.getenv('API_KEY')
async def handle_message(bot, msg):
if msg.text == '/start':
await bot.send_chat_action(msg.chat.id, ChatAction.TYPING)
await asyncio.sleep(0.2)
await bot.send_message(msg.chat.id, 'Hello, {0}!'.format(msg.sender.first_name))
async def my_bot():
bot = TelegramBot(API_KEY)
while True:
updates = await bot.get_updates()
for update in updates:
obj = update.get_obj()
if isinstance(obj, TelegramMessage):
await handle_message(bot, obj)
asyncio.run(my_bot())
FAQs
Asynchronous Telegram Bot API
We found that atbot demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
/Security News
Malicious update to @ctrl/tinycolor on npm is part of a supply-chain attack hitting 40+ packages across maintainers
Security News
pnpm's new minimumReleaseAge setting delays package updates to prevent supply chain attacks, with other tools like Taze and NCU following suit.
Security News
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.