webhook_telegram_bot.utils

This file contains utils methods.

Module Contents

Functions

deep_get(obj: Optional[Dict[str, Any]], path: str) → Any

Return value from dict by string path or None.

webhook_telegram_bot.utils.deep_get(obj: Optional[Dict[str, Any]], path: str) Any

Return value from dict by string path or None.

Parameters
  • obj – dictionary

  • path – string of dictionary properties separated by dots

Returns

value or None