Giter VIP home page Giter VIP logo

telegram-ios's Introduction

Telegram iOS Source Code Compilation Guide

We welcome all developers to use our API and source code to create applications on our platform. There are several things we require from all developers for the moment.

Creating your Telegram Application

  1. Obtain your own api_id for your application.
  2. Please do not use the name Telegram for your app — or make sure your users understand that it is unofficial.
  3. Kindly do not use our standard logo (white paper plane in a blue circle) as your app's logo.
  4. Please study our security guidelines and take good care of your users' data and privacy.
  5. Please remember to publish your code too in order to comply with the licences.

Quick Compilation Guide

Get the Code

git clone --recursive -j8 https://github.com/TelegramMessenger/Telegram-iOS.git

Setup Xcode

Install Xcode (directly from https://developer.apple.com/download/applications or using the App Store).

Adjust Configuration

  1. Generate a random identifier:
openssl rand -hex 8
  1. Create a new Xcode project. Use Telegram as the Product Name. Use org.{identifier from step 1} as the Organization Identifier.
  2. Open Keychain Access and navigate to Certificates. Locate Apple Development: [email protected] (XXXXXXXXXX) and double tap the certificate. Under Details, locate Organizational Unit. This is the Team ID.
  3. Edit build-system/template_minimal_development_configuration.json. Use data from the previous steps.

Generate an Xcode project

python3 build-system/Make/Make.py \
    --cacheDir="$HOME/telegram-bazel-cache" \
    generateProject \
    --configurationPath=build-system/template_minimal_development_configuration.json \
    --xcodeManagedCodesigning

Advanced Compilation Guide

Xcode

  1. Copy and edit build-system/appstore-configuration.json.
  2. Copy build-system/fake-codesigning. Create and download provisioning profiles, using the profiles folder as a reference for the entitlements.
  3. Generate an Xcode project:
python3 build-system/Make/Make.py \
    --cacheDir="$HOME/telegram-bazel-cache" \
    generateProject \
    --configurationPath=configuration_from_step_1.json \
    --codesigningInformationPath=directory_from_step_2

IPA

  1. Repeat the steps from the previous section. Use distribution provisioning profiles.
  2. Run:
python3 build-system/Make/Make.py \
    --cacheDir="$HOME/telegram-bazel-cache" \
    build \
    --configurationPath=...see previous section... \
    --codesigningInformationPath=...see previous section... \
    --buildNumber=100001 \
    --configuration=release_arm64

FAQ

Xcode is stuck at "build-request.json not updated yet"

Occasionally, you might observe the following message in your build log:

"/Users/xxx/Library/Developer/Xcode/DerivedData/Telegram-xxx/Build/Intermediates.noindex/XCBuildData/xxx.xcbuilddata/build-request.json" not updated yet, waiting...

Should this occur, simply cancel the ongoing build and initiate a new one.

Telegram_xcodeproj: no such package

Following a system restart, the auto-generated Xcode project might encounter a build failure accompanied by this error:

ERROR: Skipping '@rules_xcodeproj_generated//generator/Telegram/Telegram_xcodeproj:Telegram_xcodeproj': no such package '@rules_xcodeproj_generated//generator/Telegram/Telegram_xcodeproj': BUILD file not found in directory 'generator/Telegram/Telegram_xcodeproj' of external repository @rules_xcodeproj_generated. Add a BUILD file to a directory to mark it as a package.

If you encounter this issue, re-run the project generation steps in the README.

Tips

Codesigning is not required for simulator-only builds

Add --disableProvisioningProfiles:

python3 build-system/Make/Make.py \
    --cacheDir="$HOME/telegram-bazel-cache" \
    generateProject \
    --configurationPath=path-to-configuration.json \
    --codesigningInformationPath=path-to-provisioning-data \
    --disableProvisioningProfiles

Versions

Each release is built using a specific Xcode version (see versions.json). The helper script checks the versions of the installed software and reports an error if they don't match the ones specified in versions.json. It is possible to bypass these checks:

python3 build-system/Make/Make.py --overrideXcodeVersion build ... # Don't check the version of Xcode

telegram-ios's People

Contributors

aaronschubert0 avatar adlai-holler avatar appleguy avatar ashtom avatar buba447 avatar derandereandi avatar diederich avatar eanagel avatar ejensen avatar eke avatar frayxrulez avatar garrettmoon avatar grishka avatar hannahmbanana avatar hermet avatar john-preston avatar laktyushin avatar lappp9 avatar levi avatar lumaxis avatar maicki avatar matkovivan avatar nguyenhuy avatar overtake avatar petertechstories avatar rcancro avatar rnystrom avatar secretiverhyme avatar smohantty avatar tewha avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

telegram-ios's Issues

Simple Passcode login form is shown even when Simple Passcode is turned off

I just encountered this serious bug on my iOS client and I basically locked myself out.

Steps to reproduce:

  1. Settings > Privacy & security > Passcode & Touch ID
  2. Turn on passcode
  3. Input a 4 digit passcode, twice
  4. Switch on Touch ID (otherwise you won’t be able to login at all)
  5. Turn off Simple Passcode option
  6. Enter a complex passcode, twice

Now, if you lock your chats or time out period expires you will be presented with the 4 digit input form (or the Touch ID input)! You are now locked out of managing your passcode forever...

iOS 12.1.2
Telegram 5.1.1

I originally posted this here peter-iakovlev/Telegram#333, but heard nothing since.

No Thumbnail

IMG_20190514_133221_519
Android - No bug with thumbnails

IMG_20190514_133224_097
iOS - Bugged

As you can see, it doesn't show thumbnails. I mixed two types of inline queries: the one that shows stickers and the last line you can see in the pics (InlineQueryResultCachedSticker and InlineQueryResultArticle) .
It seems that it is supported only on Android systems and Telegram Desktop/Web.

deep link not working

Hello,
Deep linking is not working on iOS.
So, we can't add a secure token to start a bot.
e.g. https://t.me/botusername?start=supersecuretoken

How to reproduce :

Version : iOS 12.3 with the Telegram v5.6.3 (1658).

1/ if the bot view is the current view, the start is not interpreted and no start command at all is loaded from the link.

2/ if the list chat view is the current view, the start is working as it should be with the secure token. We can see that the chat list view become the bot view then a big start button with the secure token behind appears.

This functional part is not seen by "normal" users because :

  1. they open a private discussion with the bot
  2. they are doing /start which is giving an external auth button e.g. Google Auth/AD Auth/...
  3. after auth from system, the deep link is used with a temporary token to link user and system
  4. the link is opened by the iOS to Telegram but nothing happens because we are in bot view in the 1/ above.

This issue was opened in the old repo by someone else => peter-iakovlev/Telegram#309 (29 Sep 2018)

Please, help me with new issues

Showing All Messages
/Users/Nazar/Downloads/Telegram-iOS-master/Telegram-iOS/Config-AppStore.xcconfig:1: could not find included file '../../Telegram-iOS-Shared/Config-AppStore.xcconfig' in search paths (in target 'Watch Extension')

APP_CONFIG_DATA

Can you help me with this?
NSString *hex = @(APP_CONFIG_DATA); (Use of undeclared identifier 'APP_CONFIG_DATA')
thanks.

Annoying 5 seconds delay undo deleted chat history UX

I just updated my Telegram X and noticed this new 5 seconds delay undo deleted chat history notification at the bottom of the screen. This is rather annoying because I have to wait for the 5 seconds animation to finish to be able to navigate to other tab such as Contacts, Calls, Chat, Settings which is currently blocked by the black notification on top of the tabs. Imagine I have to clear 5 chat history that would wasted nearly 25 seconds of my life.

Why would you create this stupid undo feature. If you really need to reverse something you did not intend to do at the first place, maybe it's better if you ask a confirmation button instead of this? Another idea is to change the position of the notification to not block the bottom tabs. Also, not everyone needs that god damn undo button it pisses me off please add an option to disable it in the Settings.

Thank you!

Add Moovit as navigation/mapping URI scheme

I am an iOS developer at Moovit. I've noticed that the app supports opening several mobility apps via a URI scheme.

I would like to add Moovit to the list (which has 430+ million users worldwide).

I've managed to checkout the app source and to write the relevant code modification (in Telegram-iOS & in TelegramUI). It works.

Do I submit a PR? What are the contribution rules? Thanks!

Bad audio quality

Telegram 5.5.1, iOS 12.2.

Sound quality of audio messages is absolutely terrible. Desktop version doesn’t compress the audio so atrociously much, and does provide way better sound. Is it possible to add an option to regulate sound compression?

I understand the reason behind it (to save bandwidth, I speculate), but I’d love to actually have an audio that doesn’t sound like a cheap toy.

Build Failed in Xcode 10.2

In recent update of Xcode 10.2, it warns that the Swift 3.x codes should be switched to Swift 4.

I didn't do so, but still try to re-compile in Xcode 10.2. Errors appeared. Here is one of them:

In ManagedAudioSession.swift in TelegramUI line 638,

print("ManagedAudioSession setting active \(type != .none)")

it shows errors:

Expression type 'Bool' is ambiguous without more context

The same code is able to be compiled in Xcode 10.1

Can any one show me the direction to disable pornographic channel restriction?

Since it's the source code it won't be affected by Apple Store guideline. So is there any tricks that can disable the channel restriction just like the Android app?
I know there is a lot of detours that can get rid of it, such as using a web version, but I just simply hate Apple rules and I'm not planning on obeying it. I've already compile it on my phone with push certification setup, but I'm not a swift reader.
I know it's possible because I've done it on Objective C version of Telegram already.
Appreciate any help.

No Push Notification was received via Telegram Fork (v5.5)

I noticed that no push notification was received via Telegram Fork (v5.5).

I tried to upload the associated APNS certificate at Telegram Core web-based portal, but it always said the certificate is invalid. Already tried PEM (converted via OpenSSL command line tool) and CER (download from Apple Developer Portal) format.

How to solve this problem?

FFMPEG Compile Error: invalid operand for inline asm constraint 'i'

I'm building Telegram Fork, but failed with FFMPEG Compile Error. Build log is below:

building armv7...
AR	libavformat/libavformat.a
CC	libavcodec/h264_direct.o
CC	libavcodec/h264_picture.o
CC	libavcodec/h264_ps.o
CC	libavcodec/h264_refs.o
CC	libavcodec/h264_sei.o
CC	libavcodec/h264_slice.o
CC	libavcodec/h264chroma.o
CC	libavcodec/h264data.o
CC	libavcodec/h264dec.o
CC	libavcodec/h264dsp.o
CC	libavcodec/h264idct.o
CC	libavcodec/h264pred.o
CC	libavcodec/h264qpel.o
error: invalid operand for inline asm constraint 'i' at line 5747697
make: *** [libavcodec/h264_direct.o] Error 1
make: *** Waiting for unfinished jobs....
error: invalid operand for inline asm constraint 'i' at line 5438132
make: *** [libavcodec/h264idct.o] Error 1
error: invalid operand for inline asm constraint 'i' at line 5418997
make: *** [libavcodec/h264dsp.o] Error 1
error: invalid operand for inline asm constraint 'i' at line 5435979
make: *** [libavcodec/h264pred.o] Error 1
error: invalid operand for inline asm const

How to tackle this problem?

System Info:

  • Xcode 10.1
  • macOS 10.14.2

Output of gcc --version:

Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/c++/4.2.1
Apple LLVM version 10.0.0 (clang-1000.11.45.5)
Target: x86_64-apple-darwin18.2.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin

Command PhaseScriptExecution failed with a nonzero exit code

/Users/mac-developer/Library/Developer/Xcode/DerivedData/Telegram-iOS-fmzjepjovidblogotojnsyqbcjlj/Build/Intermediates.noindex/FFMpeg.build/DebugFork-iphonesimulator/FFMpeg.build/Script-D04554C821BF0F5E007A6DD9.sh: line 17: /Users/mac-developer/Desktop/untitled: No such file or directory
Command PhaseScriptExecution failed with a nonzero exit code

GIF file from 3rd part is displayed as download file!

When sending GIF files from 3rd part apps, the file is not displayed as it should, only as a download icon and the user is forced to download the item to displayed.

Even thou the GIF settings is correct for auto download, it's not beeing downloaded at all!

Incorrect Notification Badge Count

I found that the Telegram-Fork has incorrect notification badge count. When I installed Telegram-Fork and official Telegram v5.5.1 side-by-side, logging into the same Telegram user account, the badge count of two apps is inconsistent. I checked Settings > Notifications and Sounds, both apps use the same settings.

No related Notification codes changed; I only changed the Bundle Identifier and generated related APNS certificates then upload to Telegram Core Portal.

How to resolve this badge count inconsistency issue?

Problem secret chat message from telegram-cli to Iphone

Sending secret chat messages from telegram-cli to Iphone does not work.
To Android is ok.
Create secret chat is ok.
After create secret chat with Iphone, send messages, but it is empty.
Telegram-cli no error, but in log - "can not decrypt message".

Telegram-cli use old tgl lib.
Maybe problem in the old version MTProto or TL-schema in tgl?
It can somehow be fixed?
Any ideas why secret chat doesn't work from telegram-cli with iphone?
Thx.

Send Message URL Scheme not working

I used to integrate with Telegram via my app, and allow users to send prepopulated messages using the following URL Scheme: tg://msg?text=Hello&to=+42333

Where the to would match to an existing Contact if present in Telegram, and the text would autofill as the message.

Sometime over the last month or so this has stopped working. Are we able to restore this feature?

Malformed OGG files

Telegram for iOS produce malformed OGG files for voice messages. It cannot be played on Telegram Desktop built against modern ffmpeg versions (4.1+).

If you will export this OGG file using Telegram Desktop (RMB -> Save As) and then use mpv to play it, you will get an error:

[ffmpeg/demuxer] ogg: Packet processing failed: Invalid data found when processing input
[lavf] error reading packet.
[lavf] EOF reached.

Telegram Desktop also cannot play it as reported here:

[2019.05.23 14:55:58] Audio Info: recreating audio device and reattaching the tracks
[2019.05.23 14:55:58] Streaming Error: Error in av_read_frame (code: -1094995529, text: Invalid data found when processing input).
[2019.05.23 14:55:59] Audio Info: Closing audio playback device.

Bug confirmed in versions: Telegram 5.5.1 (iPhone 6, iOS 12.1.4) and Telegram 5.6.3 (iPhone 7, iOS 12.1.2).

Please fix it.

Video from Android is blurred (sound works)

When I receive an .mp4 footage from an Android phone, my iPhone cannot play that. The video shows a blurred version of the first frame and sound works as expected.

iPhone specs (receiver):
iPhone 7
iOS 12.1
Telegram version: 5.0.17

Android specs (sender):
LG G6
Android 8.0.0
Telegram version: 4.9.1

The same video works on the desktop version, and people with Android devices can play it. I also tried receiving the same footage on WhatsApp and it worked.

Suggestion to improve chat/group archive feature

In general all chats in archive should not popping up back just because someone pin a message. They should be there until someone ping me directly by “@my_user_name“ or I decided to remove it explicitly from archive. All notifications from archived chat/groups should become completely muted.

How to upload VoIP certificate?

When VoIP push token is sent to telegram server that's what I receive
response for 6695690508489876480 is error: 400: APP_PUSH_CERT_MISSING]

So basically I need to upload VoIP certificate to Telegram server.
But I can't find any options to do this.

Little design issue in blocked list

Version 5.0.17

Screenshot:
photo_2018-11-20_13-47-26

In this section (in setting) description for page fixed in center on page, your need to make it fixed under the button

FFMpeg Compiling Error

When I try to build the project I get FFMpeg compiling error:

building x86_64...
Generating opus.pc
ERROR: opus not found using pkg-config

If you think configure made a mistake, make sure you are using the latest
version from Git. If the latest version fails, report the problem to the
[email protected] mailing list or IRC #ffmpeg on irc.freenode.net.
Include the log file "ffbuild/config.log" produced by configure as this will help
solve the problem.
Command PhaseScriptExecution failed with a nonzero exit code

Is there any building guide with straightforward instructions?

[Feature Request] Filter from Calls Tab Channels, Groups, Bots, Chats

I think Telegram client needs some sort of filter for the chat type, allowing users to switch the view from the list of all chats to a view on only specific types of chats (e.g., when I scroll I just want to see groups; when I scroll I just want to see channels; etc).
In fact, when in the Calls Tab, it is not easy to find the right group, channel, bot, or chat while scrolling down. Looking for a specific chat is now only possible by scrolling among all chats or by using the search feature.
Other than another way to look for a specific chat, this would give users an easy way to control what channels they subscribed or bot they are using.

Can't get badge count working in background mode

Assembling Fork configuration.
Push messages seems to work fine.
But in background mode I don't see badge counter on app icon is being updated.
Stock telegram seems fine.
Any special configuration needed for this?

Mute is not work on some group

Version 5.0.17.

2 days ago,I upgrade Telegram X to the latest version,Then I found mute is note work on some Group. I not work after Unmute then Mute.The groups always the same 2 or 3 groups.The total group I join is around 15.

What is APP_CONFIG_DATA ?

In version Telegram 5.5, I saw from BuildConfig.m in Telegram-iOS that it reads a constant called APP_CONFIG_DATA in line 277. It is added at commit f5880c1.

What should be the value of it? Thanks.

Dynamic Font Type Support

I’m missing dynamic font type support for the iOS application. It’s very disappointed to see telegram doesn’t fit the system setting and brakes the look of the experience on iOS.

[Feature Request] Complication for Apple Watch

It'd be great if there could be a complication on the Apple Watch similar to the Messages one that just shows my unread count and is able to be launched straight from the watch face.

Push Notification not recived

Push notification not received in kill state in the telegram source code. When creating telegram app APNS production certificate are not add i added many times please help me

ERROR: opus not found using pkg-config

building x86_64...
ERROR: opus not found using pkg-config
If you think configure made a mistake, make sure you are using the latest
version from Git. If the latest version fails, report the problem to the
[email protected] mailing list or IRC #ffmpeg on irc.freenode.net.
Include the log file "ffbuild/config.log" produced by configure as this will help
solve the problem.

I can't resolve it.

AppDelegate.swift openChatWhenReady func encounters EXC_BREAKPOINT

In release-5.6, I received EXC_BREAKPOINT crash at openChatWhenReady around line 1662 in AppDelegate.swift randomly.

The Assertion failed at Telegram-iOS/submodules/TelegramUI/TelegramUI/SharedAccountContext.swift line 745.

which is:

assert(Queue.mainQueue().isCurrent())

In 2043 sessions, only 65 crashes occurred (around 3%). Crash log below:

Crashed: Thread
0  libswiftCore.dylib             0x224e14ba0 specialized _assertionFailure(_:_:file:line:flags:) + 360
1  libswiftCore.dylib             0x224c382bc _assertionFailure(_:_:file:line:flags:) + 32
2  TelegramUI                     0x10d723d40 $s10TelegramUI20SharedAccountContextC08switchToD02id22fromSettingsController012withChatListK0y7Postbox0D8RecordIdV_AA0jK0_7Display04ViewK0CXcSgAA0mnK0CSgtF + 688
3  Telegram                       0x104582eb8 closure #1 in AppDelegate.openChatWhenReady(accountId:peerId:messageId:) (AppDelegate.swift:1671)
4  Telegram                       0x104583390 thunk for @escaping @callee_guaranteed (@guaranteed SharedApplicationContext) -> (@owned Signal<AuthorizedApplicationContext, NoError>) (<compiler-generated>)
5  SwiftSignalKit                 0x1242f746c block_destroy_helper + 14032
6  SwiftSignalKit                 0x1242e8b0c __swift_memcpy16_8 + 46992
7  SwiftSignalKit                 0x1242eada4 __swift_memcpy16_8 + 55848
8  SwiftSignalKit                 0x1242e8b0c __swift_memcpy16_8 + 46992
9  SwiftSignalKit                 0x1242e0210 __swift_memcpy16_8 + 11924
10 SwiftSignalKit                 0x1242c92ec (Missing)
11 SwiftSignalKit                 0x1242c9b04 (Missing)
12 SwiftSignalKit                 0x1242df854 __swift_memcpy16_8 + 9432
13 SwiftSignalKit                 0x1242e8b0c __swift_memcpy16_8 + 46992
14 SwiftSignalKit                 0x1242f4de0 block_destroy_helper + 4164
15 SwiftSignalKit                 0x1242e8b0c __swift_memcpy16_8 + 46992
16 SwiftSignalKit                 0x1242f4de0 block_destroy_helper + 4164
17 SwiftSignalKit                 0x1242e8b0c __swift_memcpy16_8 + 46992
18 SwiftSignalKit                 0x1242dce54 globalinit_33_92F4F598AAF5E086383D0FF4D3E7D26E_func0 + 2164
19 SwiftSignalKit                 0x1242dcc54 globalinit_33_92F4F598AAF5E086383D0FF4D3E7D26E_func0 + 1652
20 SwiftSignalKit                 0x1242f4b24 block_destroy_helper + 3464
21 SwiftSignalKit                 0x1242f63f8 block_destroy_helper + 9820
22 SwiftSignalKit                 0x1242f6448 block_destroy_helper + 9900
23 SwiftSignalKit                 0x1242e8b0c __swift_memcpy16_8 + 46992
24 SwiftSignalKit                 0x1242f748c block_destroy_helper + 14064
25 SwiftSignalKit                 0x1242e8b0c __swift_memcpy16_8 + 46992
26 SwiftSignalKit                 0x1242cc7dc block_destroy_helper.11 + 2876
27 SwiftSignalKit                 0x1242e8b0c __swift_memcpy16_8 + 46992
28 SwiftSignalKit                 0x1242c79b0 (Missing)
29 SwiftSignalKit                 0x1242e8b0c __swift_memcpy16_8 + 46992
30 SwiftSignalKit                 0x1242f97e0 block_destroy_helper + 23108
31 SwiftSignalKit                 0x1242e8b0c __swift_memcpy16_8 + 46992
32 SwiftSignalKit                 0x1242dce54 globalinit_33_92F4F598AAF5E086383D0FF4D3E7D26E_func0 + 2164
33 SwiftSignalKit                 0x1242dcc54 globalinit_33_92F4F598AAF5E086383D0FF4D3E7D26E_func0 + 1652
34 SwiftSignalKit                 0x1242f9534 block_destroy_helper + 22424
35 SwiftSignalKit                 0x1242dcc54 globalinit_33_92F4F598AAF5E086383D0FF4D3E7D26E_func0 + 1652
36 SwiftSignalKit                 0x1242c78bc (Missing)
37 SwiftSignalKit                 0x1242cb1c8 globalinit_33_7B002C74171342D8C01CAAB4B86B16FD_func3 + 4000
38 libdispatch.dylib              0x1f6bcca38 _dispatch_call_block_and_release + 24
39 libdispatch.dylib              0x1f6bcd7d4 _dispatch_client_callout + 16
40 libdispatch.dylib              0x1f6b76320 _dispatch_lane_serial_drain$VARIANT$mp + 592
41 libdispatch.dylib              0x1f6b76e3c _dispatch_lane_invoke$VARIANT$mp + 428
42 libdispatch.dylib              0x1f6b7f4a8 _dispatch_workloop_worker_thread + 596
43 libsystem_pthread.dylib        0x1f6dad114 _pthread_wqthread + 304
44 libsystem_pthread.dylib        0x1f6dafcd4 start_wqthread + 4

Can anybody advise what's happened? and how to resolve?


UPDATE: the random crash is initiated by pressing the Push Notification banner, while the app is in background.

Power button cancels a Telegram voice call even if loudspeakers are activated

During a call while loudspeakers activated, locking an iPhone via the power button cancels the ongoing call. It shouldn't end the call while on loudspeakers like on WhatsApp or normal calls.

Also, this does not happen on iPads or while using headphones.
It's buggy since the Swift version was introduced. Please fix it finally!

5.6.4 (1655), iOS 12.3.1

Recursive clone returns permission errors.

I'm happy that the Telegram Swift version is released.

However, when I try to git clone --recursive, permission denied is returned.

$ git clone https://github.com/peter-iakovlev/Telegram-iOS.git --recursive
Cloning into 'Telegram-iOS'...
remote: Enumerating objects: 1047, done.
remote: Counting objects: 100% (1047/1047), done.
remote: Compressing objects: 100% (752/752), done.
remote: Total 1047 (delta 272), reused 1045 (delta 270), pack-reused 0
Receiving objects: 100% (1047/1047), 2.46 MiB | 991.00 KiB/s, done.
Resolving deltas: 100% (272/272), done.
Submodule 'submodules/AsyncDisplayKit' ([email protected]:peter-iakovlev/AsyncDisplayKit.git) registered for path 'submodules/AsyncDisplayKit'
Submodule 'submodules/Display' ([email protected]:peter-iakovlev/Display.git) registered for path 'submodules/Display'
Submodule 'submodules/HockeySDK-iOS' ([email protected]:peter-iakovlev/HockeySDK-iOS.git) registered for path 'submodules/HockeySDK-iOS'
Submodule 'submodules/LegacyComponents' ([email protected]:peter-iakovlev/LegacyComponents.git) registered for path 'submodules/LegacyComponents'
Submodule 'submodules/MtProtoKit' ([email protected]:peter-iakovlev/MtProtoKit.git) registered for path 'submodules/MtProtoKit'
Submodule 'submodules/Postbox' ([email protected]:peter-iakovlev/Postbox.git) registered for path 'submodules/Postbox'
Submodule 'submodules/SSignalKit' ([email protected]:peter-iakovlev/Signals.git) registered for path 'submodules/SSignalKit'
Submodule 'submodules/TelegramCore' ([email protected]:peter-iakovlev/TelegramCore.git) registered for path 'submodules/TelegramCore'
Submodule 'submodules/TelegramUI' ([email protected]:peter-iakovlev/TelegramUI.git) registered for path 'submodules/TelegramUI'
Submodule 'submodules/libtgvoip' (https://github.com/grishka/libtgvoip.git) registered for path 'submodules/libtgvoip'
Submodule 'submodules/lottie-ios' ([email protected]:peter-iakovlev/lottie-ios.git) registered for path 'submodules/lottie-ios'
Cloning into '/path/to/Telegram-iOS/submodules/AsyncDisplayKit'...
Warning: Permanently added the RSA host key for IP address '192.30.253.112' to the list of known hosts.
[email protected]: Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
fatal: clone of '[email protected]:peter-iakovlev/AsyncDisplayKit.git' into submodule path '/path/to/Telegram-iOS/submodules/AsyncDisplayKit' failed
Failed to clone 'submodules/AsyncDisplayKit'. Retry scheduled
Cloning into '/path/to/Telegram-iOS/submodules/Display'...
[email protected]: Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
fatal: clone of '[email protected]:peter-iakovlev/Display.git' into submodule path '/path/to/Telegram-iOS/submodules/Display' failed
Failed to clone 'submodules/Display'. Retry scheduled
Cloning into '/path/to/Telegram-iOS/submodules/HockeySDK-iOS'...
[email protected]: Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
fatal: clone of '[email protected]:peter-iakovlev/HockeySDK-iOS.git' into submodule path '/path/to/Telegram-iOS/submodules/HockeySDK-iOS' failed
Failed to clone 'submodules/HockeySDK-iOS'. Retry scheduled
Cloning into '/path/to/Telegram-iOS/submodules/LegacyComponents'...
[email protected]: Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
fatal: clone of '[email protected]:peter-iakovlev/LegacyComponents.git' into submodule path '/path/to/Telegram-iOS/submodules/LegacyComponents' failed
Failed to clone 'submodules/LegacyComponents'. Retry scheduled
Cloning into '/path/to/Telegram-iOS/submodules/MtProtoKit'...
[email protected]: Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
fatal: clone of '[email protected]:peter-iakovlev/MtProtoKit.git' into submodule path '/path/to/Telegram-iOS/submodules/MtProtoKit' failed
Failed to clone 'submodules/MtProtoKit'. Retry scheduled
Cloning into '/path/to/Telegram-iOS/submodules/Postbox'...
[email protected]: Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
fatal: clone of '[email protected]:peter-iakovlev/Postbox.git' into submodule path '/path/to/Telegram-iOS/submodules/Postbox' failed
Failed to clone 'submodules/Postbox'. Retry scheduled
Cloning into '/path/to/Telegram-iOS/submodules/SSignalKit'...
[email protected]: Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
fatal: clone of '[email protected]:peter-iakovlev/Signals.git' into submodule path '/path/to/Telegram-iOS/submodules/SSignalKit' failed
Failed to clone 'submodules/SSignalKit'. Retry scheduled
Cloning into '/path/to/Telegram-iOS/submodules/TelegramCore'...
[email protected]: Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
fatal: clone of '[email protected]:peter-iakovlev/TelegramCore.git' into submodule path '/path/to/Telegram-iOS/submodules/TelegramCore' failed
Failed to clone 'submodules/TelegramCore'. Retry scheduled
Cloning into '/path/to/Telegram-iOS/submodules/TelegramUI'...
[email protected]: Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
fatal: clone of '[email protected]:peter-iakovlev/TelegramUI.git' into submodule path '/path/to/Telegram-iOS/submodules/TelegramUI' failed
Failed to clone 'submodules/TelegramUI'. Retry scheduled
Cloning into '/path/to/Telegram-iOS/submodules/libtgvoip'...
remote: Enumerating objects: 125, done.        
remote: Counting objects: 100% (125/125), done.        
remote: Compressing objects: 100% (97/97), done.        
remote: Total 1680 (delta 35), reused 71 (delta 27), pack-reused 1555        
Receiving objects: 100% (1680/1680), 8.22 MiB | 366.00 KiB/s, done.
Resolving deltas: 100% (982/982), done.
Cloning into '/path/to/Telegram-iOS/submodules/lottie-ios'...
[email protected]: Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
fatal: clone of '[email protected]:peter-iakovlev/lottie-ios.git' into submodule path '/path/to/Telegram-iOS/submodules/lottie-ios' failed
Failed to clone 'submodules/lottie-ios'. Retry scheduled
Cloning into '/path/to/Telegram-iOS/submodules/AsyncDisplayKit'...
[email protected]: Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
fatal: clone of '[email protected]:peter-iakovlev/AsyncDisplayKit.git' into submodule path /path/to/Telegram-iOS/submodules/AsyncDisplayKit' failed
Failed to clone 'submodules/AsyncDisplayKit' a second time, aborting

Any clue? Thanks.

Search for messages function is buggy for non-English characters

For both official Telegram and Telegram-Fork, the search function in the Chats tab does not work correctly when searching in non-English characters, for example, Chinese characters.

Sometimes it requires users to type at least 2 characters before results can be shown; sometimes it requires users type 1 character but not more than one character in order to show correct results.

p.s. Searching in English has no problem at all.

IMG_7E7C754C3CDB-1

Clicking t.me link in a webpage (Telegram webview) does not open the account

Hi,

I want to report a bug in Telegram v5.4.1 (I'm using iOS 12.1.4). Steps to reproduce:

  1. Send https://telegram.org/faq#q-how-does-t-me-work link to yourself (Saved Messages)
  2. From your Telegram iOS app, click on that link
  3. Now, click on t.me/username link that you see on the screen
  4. You should be stucked
  5. Now, click on Done on top left of the Telegram app
  6. That account has opened in the background

As a user, I was expecting to see that account straight away i.e. Telegram auto-closes the webview and bring me straight into that account.

Can we fix this bug?

Thank you!

The currency sign within payment invoice message is always '$'

Telegram version 5.0.17
The issue is related only to iOS (everything works fine on Android)

In our case, we accpet Russian Rubles only (RUB), but it is still reflected as $. See the screenshot. You still pay in the required currency (RUB), but this issue may confuse our buyers - as USD/RUB Fx rate is ~65 today :)

Thanks for solving.

image

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.