Skip to main content

FlorestMessangerAPIPlus

Project description

FMAPIP - FlorestMessangerAPIPlus

Библиотека, предназначенная для облегчения написания ботов на мессенджере FlorestMessanger с помощью библиотеки FlorestMessangerAPI

Примеры

Используя синхронизацию:

from fmapip import Bot, Message, MessagePlus, set_bot

bot = Bot(
    'your-token', # получить его можно в личном кабинете мессенджера
    'bot-name', # название бота
    '!', # префикс бота
    raise_on_status_code = True # вызвать ошибку, если попытка выполнить код неуспешна
)
set_bot(bot) # чтобы использовать функции fmapip
m = MessagePlus()

@bot.add_command('hello')
def hello(message: Message): # название команды и функции могут не совпадаться
    m.send('Привет!')

bot.run()

Используя асинхронизацию:

from fmapip import AsyncBot, AsyncMessagePlus, Message, set_bot

bot = AsyncBot(
    'your-token', # получить его можно в личном кабинете мессенджера
    'bot-name', # название бота
    '!', # префикс бота
    raise_on_status_code = True # вызвать ошибку, если попытка выполнить код неуспешна
)
set_bot(bot) # чтобы использовать функции fmapip
m = AsyncMessagePlus()

@bot.add_command('hello')
async def hello(message: Message): # название команды и функции могут не совпадаться
    await m.send('Привет!')

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

fmapip-1.0.0.tar.gz (5.4 kB view details)

Uploaded Source

Built Distribution

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

fmapip-1.0.0-py3-none-any.whl (6.3 kB view details)

Uploaded Python 3

File details

Details for the file fmapip-1.0.0.tar.gz.

File metadata

  • Download URL: fmapip-1.0.0.tar.gz
  • Upload date:
  • Size: 5.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for fmapip-1.0.0.tar.gz
Algorithm Hash digest
SHA256 ca1020c0d52c551fddc14d13573fc4a115bec5c3c66e43bf4d15e5c846d21118
MD5 f145d1b9c099add6bd0b5717811abb71
BLAKE2b-256 6f3e566bef1d856f7254fc1164c65c40e66e8d2270b33c341c6d9ab4ea2a4f07

See more details on using hashes here.

File details

Details for the file fmapip-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: fmapip-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 6.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for fmapip-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 24eb79587d85f48bcc85ec62364fbef18e2799c0a1a51e316552857c33121974
MD5 363e40a6fe3ed026de1e35741353caaa
BLAKE2b-256 2118e3957bebfac72adfce947e2afa34b6c732ec70d202d5569627fe7342f8dd

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