SDK for api.massbots.xyz
Project description
Python SDK
$ pip install massbots
aiogram + massbots
import os
import massbots
from aiogram import Bot, Dispatcher
from aiogram import types, executor
mb = massbots.Api(os.environ["MB_TOKEN"])
bot = Bot(token=os.environ["BOT_TOKEN"])
dp = Dispatcher(bot)
@dp.message_handler()
async def on_text(msg: types.Message):
video_id = # extract id from msg.text
file_id = mb.dl.video_cached(video_id, "720p")
bot.send_video(msg.chat.id, file_id)
if __name__ == "__main__":
executor.start_polling(dp)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
massbots-0.3.0.tar.gz
(29.1 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
massbots-0.3.0-py3-none-any.whl
(55.0 kB
view details)
File details
Details for the file massbots-0.3.0.tar.gz.
File metadata
- Download URL: massbots-0.3.0.tar.gz
- Upload date:
- Size: 29.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.11.7 Darwin/22.5.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fd1a5e856b7a77874cc34be276ab3541eb138917f07dab570007afff629ee2be
|
|
| MD5 |
8068d4998cdcd3b2269b5d6fa32cc108
|
|
| BLAKE2b-256 |
692372d3a1c37bcf4d2f0e3afc64cbdbdae90e2f62515f923d7532da98d376e0
|
File details
Details for the file massbots-0.3.0-py3-none-any.whl.
File metadata
- Download URL: massbots-0.3.0-py3-none-any.whl
- Upload date:
- Size: 55.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.11.7 Darwin/22.5.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e2029d11b61342552344f71c83f62cbbbbbfb823342688d07a5039dfbdc8c925
|
|
| MD5 |
d25834da78d4736b23f526b617953849
|
|
| BLAKE2b-256 |
4f60cf001eeafe592bc17117d5e9bab6fdb39c29b5706cfb67bc2bcf04473336
|