Skip to main content

Telegram Parking Bot (API Client)

Project description

tg-parking-api-client

pip install pba-client

telegram_users.basic_operation:

    def create_telegram_user(self, user: dict):
        url = self.prepare_url()
        return requests.post(url, json=user).json()
        
    def create_telegram_user(self, user: dict):
        url = self.prepare_url()
        return requests.post(url, json=user).json()

    def get_telegram_user(self, user: dict):
        url = self.prepare_url(f"{user.get('id')}")
        return requests.get(url).json()

    def update_telegram_user(self, user: dict):
        url = self.prepare_url(f"{user.get('id')}")
        return requests.put(url, json=user).json()

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

pba-client-0.0.7.tar.gz (4.1 kB view details)

Uploaded Source

Built Distribution

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

pba_client-0.0.7-py3-none-any.whl (6.1 kB view details)

Uploaded Python 3

File details

Details for the file pba-client-0.0.7.tar.gz.

File metadata

  • Download URL: pba-client-0.0.7.tar.gz
  • Upload date:
  • Size: 4.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.11.0 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.2

File hashes

Hashes for pba-client-0.0.7.tar.gz
Algorithm Hash digest
SHA256 9df7d8d6848941a16bd062b2a6d6e68f258e1590ede0f2cd702b4bde54af16cf
MD5 b8dac0379d8affbf4df3f012767533af
BLAKE2b-256 7131e3c4e2ec3ec4948557de2312a3f7d4586b62e95d0d24e0d4e42dd2bd2eb9

See more details on using hashes here.

File details

Details for the file pba_client-0.0.7-py3-none-any.whl.

File metadata

  • Download URL: pba_client-0.0.7-py3-none-any.whl
  • Upload date:
  • Size: 6.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.11.0 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.2

File hashes

Hashes for pba_client-0.0.7-py3-none-any.whl
Algorithm Hash digest
SHA256 02bc6d71d9ebe60f84eb1bab85814bea61b65be402584e0a1a5046ac4b7ad3c0
MD5 3598bf68af48e21018304251d69e6e65
BLAKE2b-256 2043a1b68c6060f01eb9ec798621ea686c2f310223fc9a509db043b9d7997b05

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