github xtrime-ru/TelegramApiServer v1.6.0
Sessions management

latest releases: v2.3.0, v2.2.1, v2.2.0...
4 years ago

New in this version:

  • /system http endpoint added, to add and remove sessions (experimental);
  • Ability to start without sessions;
  • Custom api method to download any supported media: downloadToResponse.
    Example POST request (GET also supported):
    curl --location --request POST '127.0.0.1:9503/api/downloadToResponse' \
    --header 'Content-Type: application/json' \
    --data-raw '{
        "media": {
            "_": "messageMediaDocument",
            "document": {
                "_": "document",
                "id": 5470079466401169993,
                "access_hash": -6754208767885394084,
                "file_reference": {
                    "_": "bytes",
                    "bytes": "AkKdqJkAACnyXiaBgp3M3DfBh8C0+mGKXwSsGUY="
                },
                "date": 1551713685,
                "mime_type": "video/mp4",
                "size": 400967,
                "dc_id": 2
            }
        }
    }'
    

Don't miss a new TelegramApiServer release

NewReleases is sending notifications on new releases.