Kindeskind/webservices/telegram_base_communication/src/telegram-history-dump/telegram-history-dump_extended.rb
# telegram-cli saves media files with weird nonstandard extensions sometimes,
# so replace known cases of these with their canonical extensions
telegram-cli saves media files with weird nonstandard extensions sometimes,
so replace known cases of these with their canonical extensions
telegram - cli saves media files with weird nonstandard extensions sometimes so replace known cases of these with their canonical extensions
def fix_media_ext(filename)
  filename
    .sub(/\.mpga$/, '.mp3')
    .sub(/\.oga$/, '.ogg')
end
def fix_media_ext ( filename ) filename . sub ( / \. mpga$ / , '.mp3' ) . sub ( / \. oga$ / , '.ogg' ) end
telegram-cli saves media files with weird nonstandard extensions sometimes,
so replace known cases of these with their canonical extensions
telegram - cli saves media files with weird nonstandard extensions sometimes so replace known cases of these with their canonical extensions
filename