Available Methods
- User ( )
- Chat ( )
- Document ( )
- Message ( )
- EncryptedChat ( )
- StickerSetCovered ( )
- FileLocation ( )
- TL_decryptedMessageService ( )
- InputStickerSet ( )
- Dialog ( )
- ChatFull ( )
- PhotoSize ( )
- TL_encryptedChat ( )
- TL_account_password ( )
- TL_wallPaper ( )
- TL_messages_stickerSet ( )
- TL_account_getPassword ( )
- ChatParticipant ( )
- TL_passwordKdfAlgoSHA256SHA256PBKDF2HMACSHA512iter100000SHA256ModPow ( )
- TL_messageMediaVenue ( )
- DocumentAttribute ( )
- ChannelParticipant ( )
- TL_peerUser ( )
- InputFileLocation ( )
- InputFile ( )
- TL_channelForbidden ( )
- TL_peerLocated ( )
- TL_dialog ( )
- TL_auth_sentCodeTypeApp ( )
- TL_documentAttributeSticker ( )
- TL_auth_sentCodeTypeFlashCall ( )
- TL_decryptedMessageActionSetMessageTTL ( )
- TL_channels_checkUsername ( )
- TL_messageMediaPoll ( )
- TL_chatBannedRights ( )
- TL_chatEmpty ( )
- WebPage ( )
- TL_messages_getAttachedStickers ( )
- TL_chatFull ( )
- TL_decryptedMessageActionScreenshotMessages ( )
- StickerSet ( )
- TL_secureFile ( )
- TL_contact ( )
- TL_chatForbidden ( )
- TL_channelFull ( )
- TL_inputPeerEmpty ( )
- TL_labeledPrice ( )
- TL_messageActionPhoneCall ( )
- TL_document ( )
- TL_chatParticipantCreator ( )
- TL_auth_codeTypeCall ( )
- TL_phoneConnection ( )
- TL_documentAttributeFilename ( )
- TL_inputGeoPoint ( )
- TL_help_acceptTermsOfService ( )
- TL_account_getAuthorizationForm ( )
- TL_shippingOption ( )
- TL_contacts_resolveUsername ( )
- BotInlineResult ( )
- TL_payments_validatedRequestedInfo ( )
- TL_messageMediaEmpty ( )
- TL_inputStickeredMediaPhoto ( )
- TL_auth_sentCode ( )
- TL_auth_sentCodeTypeCall ( )
- KeyboardButton ( )
- TL_inputPeerChannel ( )
- TL_autoDownloadSettings ( )
- TL_channels_getParticipants ( )
- TL_messages_exportChatInvite ( )
- TL_messages_search ( )
- TL_payments_validateRequestedInfo ( )
- InputEncryptedFile ( )
- InputPeer ( )
- TL_phoneCallDiscardReasonDisconnect ( )
- TL_messageEncryptedAction ( )
- TL_inputPeerPhotoFileLocation ( )
- TL_channel ( )
- TL_replyInlineMarkup ( )
- TL_photoSize ( )
- TL_help_appUpdate ( )
- TL_maskCoords ( )
- TL_inputPhoneCall ( )
- TL_inputStickerSetEmpty ( )
- TL_inputChannelEmpty ( )
- TL_messageService ( )
- TL_inputPaymentCredentialsAndroidPay ( )
- TL_decryptedMessageActionDeleteMessages ( )
- PrivacyRule ( )
- TL_dialogFilterSuggested ( )
- TL_account_checkUsername ( )
- TL_account_updateProfile ( )
- TL_photoEmpty ( )
- TL_auth_codeTypeSms ( )
- TL_phone_discardCall ( )
- TL_privacyValueDisallowAll ( )
- TL_passwordKdfAlgoUnknown ( )
- TL_channelParticipantsAdmins ( )
- TL_inputMessagesFilterMusic ( )
- TL_account_sendConfirmPhoneCode ( )
- TL_inputDocument ( )
- TL_channels_inviteToChannel ( )
- TL_messages_discardEncryption ( )
- TL_chatPhoto ( )
- MessageMedia ( )
- TL_phone_receivedCall ( )
- TL_encryptedChatRequested ( )
- TL_inputPeerUser ( )
- TL_messages_getRecentLocations ( )
- TL_auth_resendCode ( )
- BotInfo ( )
- TL_documentAttributeAudio ( )
- TL_messages_createChat ( )
- TL_channels_joinChannel ( )
- TL_dataJSON ( )
- TL_upload_getCdnFileHashes ( )
- TL_userDeleted_old2 ( )
- TL_inputCheckPasswordSRP ( )
- TL_contacts_getStatuses ( )
- TL_fileLocationToBeDeprecated ( )
- TL_userEmpty ( )
- TL_channels_getAdminLog ( )
- TL_message ( )
- TL_inputPaymentCredentialsSaved ( )
- TL_channelAdminLogEventsFilter ( )
- TL_messages_startBot ( )
- TL_payments_sendPaymentForm ( )
- TL_channels_createChannel ( )
- TL_inputFileLocation ( )
- TL_channelParticipantAdmin ( )
- TL_payments_paymentForm ( )
- DecryptedMessageAction ( )
- TL_inputEncryptedFileLocation ( )
Related Classes
- java.io.File
- java.util.Collections
- android.os.Bundle
- android.content.Context
- android.view.View
- android.widget.TextView
- android.content.Intent
- android.view.ViewGroup
- android.os.Build
- android.widget.Toast
- android.widget.ImageView
- android.net.Uri
- android.graphics.Canvas
- android.text.TextUtils
- android.view.MotionEvent
- android.graphics.drawable.Drawable
- android.widget.LinearLayout
- android.content.SharedPreferences
- android.widget.FrameLayout
- android.view.Gravity
- android.util.TypedValue
- android.graphics.PorterDuff
- android.animation.ObjectAnimator
- androidx.recyclerview.widget.RecyclerView
- androidx.recyclerview.widget.LinearLayoutManager
Java Code Examples for org.telegram.tgnet.TLRPC#TL_inputPeerUser
The following examples show how to use
org.telegram.tgnet.TLRPC#TL_inputPeerUser .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: ImageLocation.java From Telegram-FOSS with GNU General Public License v2.0 | 6 votes |
public static ImageLocation getForUser(TLRPC.User user, boolean big) { if (user == null || user.access_hash == 0 || user.photo == null) { return null; } TLRPC.FileLocation fileLocation = big ? user.photo.photo_big : user.photo.photo_small; if (fileLocation == null) { return null; } TLRPC.TL_inputPeerUser inputPeer = new TLRPC.TL_inputPeerUser(); inputPeer.user_id = user.id; inputPeer.access_hash = user.access_hash; int dc_id; if (user.photo.dc_id != 0) { dc_id = user.photo.dc_id; } else { dc_id = fileLocation.dc_id; } return getForPhoto(fileLocation, 0, null, null, inputPeer, big, dc_id, null, null); }
Example 2
Source File: ImageLocation.java From Telegram with GNU General Public License v2.0 | 6 votes |
public static ImageLocation getForUser(TLRPC.User user, boolean big) { if (user == null || user.access_hash == 0 || user.photo == null) { return null; } TLRPC.FileLocation fileLocation = big ? user.photo.photo_big : user.photo.photo_small; if (fileLocation == null) { return null; } TLRPC.TL_inputPeerUser inputPeer = new TLRPC.TL_inputPeerUser(); inputPeer.user_id = user.id; inputPeer.access_hash = user.access_hash; int dc_id; if (user.photo.dc_id != 0) { dc_id = user.photo.dc_id; } else { dc_id = fileLocation.dc_id; } return getForPhoto(fileLocation, 0, null, null, inputPeer, big, dc_id, null, null); }
Example 3
Source File: FileRefController.java From Telegram-FOSS with GNU General Public License v2.0 | 5 votes |
private boolean getPeerReferenceReplacement(TLRPC.User user, TLRPC.Chat chat, boolean big, TLRPC.InputFileLocation location, TLRPC.InputFileLocation[] replacement, boolean[] needReplacement) { if (needReplacement != null && needReplacement[0]) { replacement[0] = new TLRPC.TL_inputPeerPhotoFileLocation(); replacement[0].id = location.volume_id; replacement[0].volume_id = location.volume_id; replacement[0].local_id = location.local_id; replacement[0].big = big; TLRPC.InputPeer peer; if (user != null) { TLRPC.TL_inputPeerUser inputPeerUser = new TLRPC.TL_inputPeerUser(); inputPeerUser.user_id = user.id; inputPeerUser.access_hash = user.access_hash; peer = inputPeerUser; } else { if (ChatObject.isChannel(chat)) { TLRPC.TL_inputPeerChat inputPeerChat = new TLRPC.TL_inputPeerChat(); inputPeerChat.chat_id = chat.id; peer = inputPeerChat; } else { TLRPC.TL_inputPeerChannel inputPeerChannel = new TLRPC.TL_inputPeerChannel(); inputPeerChannel.channel_id = chat.id; inputPeerChannel.access_hash = chat.access_hash; peer = inputPeerChannel; } } replacement[0].peer = peer; return true; } return false; }
Example 4
Source File: FileRefController.java From Telegram with GNU General Public License v2.0 | 5 votes |
private boolean getPeerReferenceReplacement(TLRPC.User user, TLRPC.Chat chat, boolean big, TLRPC.InputFileLocation location, TLRPC.InputFileLocation[] replacement, boolean[] needReplacement) { if (needReplacement != null && needReplacement[0]) { replacement[0] = new TLRPC.TL_inputPeerPhotoFileLocation(); replacement[0].id = location.volume_id; replacement[0].volume_id = location.volume_id; replacement[0].local_id = location.local_id; replacement[0].big = big; TLRPC.InputPeer peer; if (user != null) { TLRPC.TL_inputPeerUser inputPeerUser = new TLRPC.TL_inputPeerUser(); inputPeerUser.user_id = user.id; inputPeerUser.access_hash = user.access_hash; peer = inputPeerUser; } else { if (ChatObject.isChannel(chat)) { TLRPC.TL_inputPeerChat inputPeerChat = new TLRPC.TL_inputPeerChat(); inputPeerChat.chat_id = chat.id; peer = inputPeerChat; } else { TLRPC.TL_inputPeerChannel inputPeerChannel = new TLRPC.TL_inputPeerChannel(); inputPeerChannel.channel_id = chat.id; inputPeerChannel.access_hash = chat.access_hash; peer = inputPeerChannel; } } replacement[0].peer = peer; return true; } return false; }