Logo
version:

Introduction

  • Quick Start
  • Install Guide
  • Project Setup

Getting Started

  • Authorization
  • Calling Methods
  • Handling Updates
  • Error Handling
  • Examples

API Reference

  • Pyrogram Client
  • Available Methods
    • Utilities
    • Messages
    • Chats
    • Users
    • Invite Links
      • get_chat_invite_link
      • export_chat_invite_link
      • create_chat_invite_link
      • edit_chat_invite_link
      • revoke_chat_invite_link
      • delete_chat_invite_link
      • get_chat_invite_link_members
      • get_chat_invite_link_members_count
      • get_chat_admin_invite_links
      • get_chat_admin_invite_links_count
      • get_chat_admins_with_invite_links
      • delete_chat_admin_invite_links
    • Contacts
    • Password
    • Bots
    • Authorization
    • Advanced
  • Available Types
  • Bound Methods
  • Update Handlers
  • Decorators
  • RPC Errors
  • Update Filters

Topic Guides

  • Using Filters
  • Creating Filters
  • More on Updates
  • Configuration File
  • Smart Plugins
  • Session Settings
  • Fast Crypto
  • Storage Engines
  • Text Formatting
  • Object Serialization
  • SOCKS5 Proxy
  • Scheduling Tasks
  • Bots Interaction
  • MTProto vs. Bot API
  • Debugging
  • Test Servers
  • Advanced Usage
  • Voice Calls

Meta

  • Pyrogram FAQ
  • Pyrogram Glossary
  • Support Pyrogram
  • About the License
  • Release Notes

Telegram API

  • Raw Functions
  • Raw Types
  • Raw Base
Pyrogram
  • Docs »
  • Available Methods »
  • get_chat_admin_invite_links_count()
  • View on GitHub

get_chat_admin_invite_links_count()¶

Client.get_chat_admin_invite_links_count()¶

Get the count of the invite links created by an administrator in a chat.

Parameters
  • chat_id (int | str) – Unique identifier for the target chat or username of the target channel/supergroup (in the format @username).

  • admin_id (int | str) – Unique identifier (int) or username (str) of the target user. For you yourself you can simply use “me” or “self”. For a contact that exists in your Telegram address book you can use his phone number (str).

  • revoked (bool, optional) – True, if you want to get revoked links instead. Defaults to False (get active links only).

Returns

int – On success, the invite links count is returned.

Next Previous

Pyrogram documentation © Copyright 2017-2021, Dan

Licensed under the Creative Commons Attribution 4.0 International License

Built with Sphinx using a theme provided by Read the Docs.