pytdbot.utils.strings

pytdbot.utils.strings.create_extra_id(bytes_size=9)[source]
Parameters:

bytes_size (int)

pytdbot.utils.strings.get_bot_id_from_token(token)[source]
Return type:

str

Parameters:

token (str)

pytdbot.utils.strings.get_retry_after_time(error_message)[source]

Get the retry after time from flood wait error message

Parameters:

error_message (str) – The returned error message from TDLib

Return type:

int

Returns:

py:class:int

pytdbot.utils.strings.to_camel_case(input_str, delimiter='.', is_class=True)[source]
Return type:

str

Parameters:
  • input_str (str)

  • delimiter (str)

  • is_class (bool)