MCPcopy Create free account
hub / github.com/TDesktop-x64/tdesktop / chat

Method chat

Telegram/SourceFiles/data/data_session.cpp:509–511  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

507}
508
509not_null<ChatData*> Session::chat(ChatId id) {
510 return peer(peerFromChat(id))->asChat();
511}
512
513not_null<ChannelData*> Session::channel(ChannelId id) {
514 return peer(peerFromChannel(id))->asChannel();

Callers 15

ChatCreateDoneFunction · 0.45
UpgradeGiftFunction · 0.45
EntryForUpgradedGiftFunction · 0.45
PeerFromInputMTPFunction · 0.45
ApplyChannelUpdateFunction · 0.45
FromTLMethod · 0.45
ToggleStarGiftSavedFunction · 0.45
ConvertStarGiftFunction · 0.45
FillUniqueGiftMenuFunction · 0.45
SavedStarGiftEntryFunction · 0.45
InputSavedStarGiftIdFunction · 0.45

Calls 2

peerFromChatFunction · 0.85
asChatMethod · 0.80

Tested by

no test coverage detected