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_chatParticipantCreator
The following examples show how to use
org.telegram.tgnet.TLRPC#TL_chatParticipantCreator .
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: ProfileActivity.java From TelePlus-Android with GNU General Public License v2.0 | 5 votes |
private boolean isParticipantAdmin(TLRPC.ChatParticipant participant) { if (participant instanceof TLRPC.TL_chatChannelParticipant) { TLRPC.ChannelParticipant channelParticipant = ((TLRPC.TL_chatChannelParticipant) participant).channelParticipant; return channelParticipant instanceof TLRPC.TL_channelParticipantCreator || channelParticipant instanceof TLRPC.TL_channelParticipantAdmin; } else { return participant instanceof TLRPC.TL_chatParticipantCreator || (currentChat != null && currentChat.admins_enabled && participant instanceof TLRPC.TL_chatParticipantAdmin); } }
Example 2
Source File: SetAdminsActivity.java From TelePlus-Android with GNU General Public License v2.0 | 5 votes |
private int getChatAdminParticipantType(TLRPC.ChatParticipant participant) { if (participant instanceof TLRPC.TL_chatParticipantCreator) { return 0; } else if (participant instanceof TLRPC.TL_chatParticipantAdmin) { return 1; } else { return 2; } }
Example 3
Source File: SetAdminsActivity.java From TelePlus-Android with GNU General Public License v2.0 | 5 votes |
@Override public boolean isEnabled(RecyclerView.ViewHolder holder) { int position = holder.getAdapterPosition(); if (position == allAdminsRow) { return true; } else if (position >= usersStartRow && position < usersEndRow) { TLRPC.ChatParticipant participant = participants.get(position - usersStartRow); if (!(participant instanceof TLRPC.TL_chatParticipantCreator)) { return true; } } return false; }
Example 4
Source File: ProfileActivity.java From TelePlus-Android with GNU General Public License v2.0 | 5 votes |
private boolean isParticipantAdmin(TLRPC.ChatParticipant participant) { if (participant instanceof TLRPC.TL_chatChannelParticipant) { TLRPC.ChannelParticipant channelParticipant = ((TLRPC.TL_chatChannelParticipant) participant).channelParticipant; return channelParticipant instanceof TLRPC.TL_channelParticipantCreator || channelParticipant instanceof TLRPC.TL_channelParticipantAdmin; } else { return participant instanceof TLRPC.TL_chatParticipantCreator || (currentChat != null && currentChat.admins_enabled && participant instanceof TLRPC.TL_chatParticipantAdmin); } }
Example 5
Source File: SetAdminsActivity.java From TelePlus-Android with GNU General Public License v2.0 | 5 votes |
private int getChatAdminParticipantType(TLRPC.ChatParticipant participant) { if (participant instanceof TLRPC.TL_chatParticipantCreator) { return 0; } else if (participant instanceof TLRPC.TL_chatParticipantAdmin) { return 1; } else { return 2; } }
Example 6
Source File: SetAdminsActivity.java From TelePlus-Android with GNU General Public License v2.0 | 5 votes |
@Override public boolean isEnabled(RecyclerView.ViewHolder holder) { int position = holder.getAdapterPosition(); if (position == allAdminsRow) { return true; } else if (position >= usersStartRow && position < usersEndRow) { TLRPC.ChatParticipant participant = participants.get(position - usersStartRow); if (!(participant instanceof TLRPC.TL_chatParticipantCreator)) { return true; } } return false; }
Example 7
Source File: ChatEditActivity.java From Telegram-FOSS with GNU General Public License v2.0 | 5 votes |
private int getAdminCount() { if (info == null) { return 1; } int count = 0; for (int a = 0, N = info.participants.participants.size(); a < N; a++) { TLRPC.ChatParticipant chatParticipant = info.participants.participants.get(a); if (chatParticipant instanceof TLRPC.TL_chatParticipantAdmin || chatParticipant instanceof TLRPC.TL_chatParticipantCreator) { count++; } } return count; }
Example 8
Source File: ChatEditActivity.java From Telegram with GNU General Public License v2.0 | 5 votes |
private int getAdminCount() { if (info == null) { return 1; } int count = 0; for (int a = 0, N = info.participants.participants.size(); a < N; a++) { TLRPC.ChatParticipant chatParticipant = info.participants.participants.get(a); if (chatParticipant instanceof TLRPC.TL_chatParticipantAdmin || chatParticipant instanceof TLRPC.TL_chatParticipantCreator) { count++; } } return count; }