KurimuzonAkuma's Fork
/
  • Telegram Chat
  • Support me

Introduction

  • Quick Start
  • Install Guide

Getting Started

  • Project Setup
  • Authorization
  • Invoking Methods
  • Handling Updates
  • Error Handling
  • Examples
    • hello_world
    • echo_bot
    • welcome_bot
    • get_history
    • get_chat_members
    • get_dialogs
    • callback_queries
    • inline_queries
    • use_inline_bots
    • bot_keyboards
    • raw_updates
    • stars

API Reference

  • Pyrogram Client
  • Available Methods
    • start
    • stop
    • run
    • restart
    • add_handler
    • remove_handler
    • stop_transmission
    • export_session_string
    • set_parse_mode
    • set_dc
    • get_dc_option
    • get_session
    • get_file
    • idle()
    • compose()
    • send_message
    • forward_media_group
    • forward_messages
    • copy_message
    • copy_media_group
    • send_photo
    • send_audio
    • send_document
    • send_screenshot_notification
    • send_sticker
    • send_video
    • send_animation
    • send_voice
    • send_video_note
    • send_media_group
    • send_message_draft
    • send_location
    • send_venue
    • send_contact
    • send_cached_media
    • send_reaction
    • edit_message_text
    • fix_text_with_ai
    • edit_message_caption
    • edit_message_checklist
    • edit_message_media
    • edit_message_reply_markup
    • edit_inline_text
    • edit_inline_caption
    • edit_inline_media
    • edit_inline_reply_markup
    • send_chat_action
    • send_checklist
    • delete_messages
    • get_available_effects
    • get_messages
    • get_scheduled_messages
    • get_stickers
    • get_web_app_link_url
    • get_web_app_url
    • mark_checklist_tasks_as_done
    • open_web_app
    • get_media_group
    • get_chat_history
    • get_chat_history_count
    • read_mentions
    • read_reactions
    • read_chat_history
    • send_poll
    • view_messages
    • vote_poll
    • stop_poll
    • retract_vote
    • send_dice
    • search_messages
    • search_messages_count
    • search_posts
    • search_posts_count
    • search_global
    • search_global_count
    • download_media
    • stream_media
    • translate_message_text
    • translate_text
    • get_discussion_message
    • get_discussion_replies
    • get_discussion_replies_count
    • get_main_web_app
    • get_custom_emoji_stickers
    • get_direct_messages_chat_topic_history
    • delete_direct_messages_chat_topic_history
    • set_direct_messages_chat_topic_is_marked_as_unread
    • start_bot
    • delete_chat_history
    • send_paid_media
    • send_paid_reaction
    • add_to_gifs
    • approve_suggested_post
    • compose_text_with_ai
    • decline_suggested_post
    • add_checklist_tasks
    • add_poll_option
    • delete_poll_option
    • summarize_message
    • join_chat
    • leave_chat
    • ban_chat_member
    • unban_chat_member
    • restrict_chat_member
    • promote_chat_member
    • set_administrator_title
    • set_chat_photo
    • delete_chat_photo
    • set_chat_title
    • set_chat_description
    • set_chat_direct_messages_group
    • set_chat_permissions
    • pin_chat_message
    • unpin_chat_message
    • pin_forum_topic
    • process_chat_has_protected_content_disable_request
    • unpin_forum_topic
    • unpin_all_chat_messages
    • get_chat
    • get_chat_member
    • get_chat_members
    • get_chat_members_count
    • get_dialogs
    • get_dialogs_count
    • get_direct_messages_topics_by_id
    • get_direct_messages_topics
    • set_chat_username
    • archive_chats
    • unarchive_chats
    • add_chat_members
    • create_channel
    • create_group
    • create_supergroup
    • delete_channel
    • delete_folder_invite_link
    • get_folder_invite_links
    • delete_supergroup
    • delete_user_history
    • set_slow_mode
    • mark_chat_unread
    • get_chat_event_log
    • get_chat_online_count
    • get_send_as_chats
    • set_send_as_chat
    • set_chat_protected_content
    • close_forum_topic
    • create_forum_topic
    • delete_forum_topic
    • edit_forum_topic
    • get_forum_topics
    • get_forum_topics_by_id
    • update_color
    • set_upgraded_gift_colors
    • update_chat_notifications
    • toggle_forum_topics
    • create_folder_invite_link
    • get_chats_for_folder_invite_link
    • get_folders
    • create_folder
    • delete_folder
    • reorder_folders
    • edit_folder
    • get_similar_channels
    • join_folder
    • leave_folder
    • toggle_join_to_send
    • toggle_folder_tags
    • set_chat_ttl
    • get_personal_channels
    • get_chat_settings
    • transfer_chat_ownership
    • get_suitable_discussion_chats
    • set_chat_discussion_group
    • set_chat_member_tag
    • set_main_profile_tab
    • get_me
    • get_users
    • get_chat_photos
    • get_chat_audios
    • get_chat_photos_count
    • get_chat_audios_count
    • set_profile_photo
    • set_personal_channel
    • delete_profile_photos
    • set_username
    • update_profile
    • block_user
    • unblock_user
    • get_common_chats
    • get_default_emoji_statuses
    • set_emoji_status
    • update_status
    • check_username
    • update_birthday
    • 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_joiners
    • get_chat_invite_link_joiners_count
    • get_chat_admin_invite_links
    • get_chat_admin_invite_links_count
    • get_chat_admins_with_invite_links
    • get_chat_join_requests
    • delete_chat_admin_invite_links
    • approve_chat_join_request
    • approve_all_chat_join_requests
    • decline_chat_join_request
    • decline_all_chat_join_requests
    • add_contact
    • delete_contacts
    • import_contacts
    • get_blocked_message_senders
    • get_contacts
    • get_contacts_count
    • search_contacts
    • set_contact_note
    • enable_cloud_password
    • change_cloud_password
    • remove_cloud_password
    • get_inline_bot_results
    • send_inline_bot_result
    • send_invoice
    • answer_callback_query
    • answer_inline_query
    • request_callback_answer
    • send_game
    • set_game_score
    • get_game_high_scores
    • set_bot_commands
    • get_bot_commands
    • delete_bot_commands
    • edit_user_star_subscription
    • set_bot_default_privileges
    • get_bot_default_privileges
    • set_chat_menu_button
    • get_chat_menu_button
    • answer_web_app_query
    • check_bot_username
    • create_bot
    • answer_pre_checkout_query
    • answer_shipping_query
    • create_invoice_link
    • refund_star_payment
    • set_bot_info_description
    • get_bot_info_description
    • set_bot_info_short_description
    • get_bot_info_short_description
    • set_bot_name
    • get_bot_name
    • get_managed_bot_token
    • replace_managed_bot_token
    • get_owned_bots
    • connect
    • disconnect
    • initialize
    • terminate
    • send_phone_number_code
    • resend_phone_number_code
    • sign_in
    • sign_in_bot
    • sign_up
    • get_password_hint
    • check_password
    • change_phone_number
    • send_recovery_code
    • recover_password
    • accept_terms_of_service
    • log_out
    • get_active_sessions
    • reset_session
    • reset_sessions
    • can_post_stories
    • copy_story
    • delete_stories
    • edit_story_caption
    • edit_story_media
    • edit_story_privacy
    • forward_story
    • get_all_stories
    • get_chat_stories
    • get_pinned_stories
    • get_archived_stories
    • get_stories
    • hide_chat_stories
    • show_chat_stories
    • view_stories
    • pin_chat_stories
    • unpin_chat_stories
    • read_chat_stories
    • send_story
    • enable_stealth_mode
    • get_story_views
    • apply_boost
    • get_boosts
    • get_boosts_status
    • get_call_members
    • delete_business_messages
    • get_business_account_gifts
    • get_business_account_star_balance
    • get_business_connection
    • transfer_business_account_stars
    • apply_gift_code
    • buy_gift_upgrade
    • check_gift_code
    • convert_gift_to_stars
    • get_available_gifts
    • get_chat_gifts
    • get_gift_auction_state
    • get_chat_gifts_count
    • add_collection_gifts
    • create_gift_collection
    • delete_gift_collection
    • drop_gift_original_details
    • edit_star_subscription
    • get_gift_collections
    • remove_collection_gifts
    • reorder_collection_gifts
    • reorder_gift_collections
    • reuse_star_subscription
    • set_gift_collection_name
    • get_gift_upgrade_preview
    • get_gift_upgrade_variants
    • get_gifts_for_crafting
    • craft_gift
    • get_payment_form
    • get_stars_balance
    • get_ton_balance
    • get_upgraded_gift_value_info
    • get_upgraded_gift
    • gift_premium_with_stars
    • hide_gift
    • increase_gift_auction_bid
    • place_gift_auction_bid
    • search_gifts_for_resale
    • send_gift
    • send_payment_form
    • send_resold_gift
    • set_gift_resale_price
    • set_pinned_gifts
    • show_gift
    • suggest_birthday
    • transfer_gift
    • upgrade_gift
    • process_gift_purchase_offer
    • send_gift_purchase_offer
    • add_profile_audio
    • remove_profile_audio
    • set_profile_audio_position
    • get_account_ttl
    • set_account_ttl
    • set_privacy
    • get_privacy
    • set_global_privacy_settings
    • set_inactive_session_ttl
    • get_global_privacy_settings
    • invoke
    • recover_gaps
    • resolve_peer
    • save_file
  • Available Types
    • AcceptedGiftTypes
    • Birthday
    • BusinessConnection
    • BusinessIntro
    • BusinessRecipients
    • BusinessWeeklyOpen
    • BusinessWorkingHours
    • User
    • Username
    • VerificationStatus
    • Chat
    • ChatPhoto
    • ChatMember
    • ChatPermissions
    • ChatAdministratorRights
    • ChatInviteLink
    • ChatAdminWithInviteLinks
    • ChatEvent
    • ChatEventFilter
    • ChatMemberUpdated
    • ChatJoinRequest
    • ChatJoiner
    • Dialog
    • Restriction
    • EmojiStatus
    • FailedToAddMember
    • Folder
    • GroupCallMember
    • ChatColor
    • FoundContacts
    • PrivacyRule
    • StoriesStealthMode
    • UserRating
    • BotVerification
    • BusinessBotRights
    • ChatSettings
    • GlobalPrivacySettings
    • HistoryCleared
    • BusinessMessage
    • Message
    • MessageEntity
    • MessageOriginChannel
    • MessageOriginChat
    • MessageOriginHiddenUser
    • MessageOriginImport
    • MessageOriginUser
    • MessageOrigin
    • Photo
    • PollOptionAdded
    • PollOptionDeleted
    • Thumbnail
    • StrippedThumbnail
    • Audio
    • AvailableEffect
    • Document
    • ExternalReplyInfo
    • FactCheck
    • FormattedText
    • ForumTopic
    • ForumTopicClosed
    • ForumTopicCreated
    • ForumTopicEdited
    • ForumTopicReopened
    • GeneralForumTopicHidden
    • GeneralForumTopicUnhidden
    • Animation
    • Video
    • Voice
    • VideoNote
    • Contact
    • CraftGiftResult
    • CraftGiftResultSuccess
    • CraftGiftResultFail
    • Location
    • ManagedBotCreated
    • MaskPosition
    • MediaArea
    • MessageContent
    • Venue
    • Sticker
    • Game
    • WebPage
    • Poll
    • ProximityAlertTriggered
    • PollOption
    • Dice
    • Reaction
    • RestrictionReason
    • Gift
    • VideoChatScheduled
    • VideoChatStarted
    • VideoChatEnded
    • VideoChatMembersInvited
    • PhoneCallStarted
    • PhoneCallEnded
    • WebAppData
    • MessageReactions
    • ChatReactions
    • Story
    • MyBoost
    • BoostsStatus
    • Giveaway
    • InputChecklistTask
    • GiveawayCreated
    • GiveawayPrizeStars
    • GiveawayCompleted
    • GiveawayWinners
    • Invoice
    • LinkPreviewOptions
    • GiftCollection
    • PremiumGiftCode
    • GiftPurchaseLimit
    • GiftResaleParameters
    • GiftResalePrice
    • GiftResalePriceStar
    • GiftResalePriceTon
    • GiftUpgradePreview
    • GiftUpgradePrice
    • GiftUpgradeVariants
    • CheckedGiftCode
    • ChecklistTask
    • ChecklistTasksAdded
    • ChecklistTasksDone
    • Checklist
    • RefundedPayment
    • ReplyParameters
    • SuccessfulPayment
    • SuggestedPostParameters
    • SuggestedPostInfo
    • SuggestedPostPaid
    • SuggestedPostPrice
    • SuggestedPostPriceStar
    • SuggestedPostPriceTon
    • SuggestedPostApprovalFailed
    • SuggestedPostApproved
    • SuggestedPostDeclined
    • SuggestedPostRefunded
    • TextQuote
    • PaidMediaInfo
    • PaidMediaPreview
    • PaidMessagesRefunded
    • PaidReactor
    • PaidMessagesPriceChanged
    • DirectMessagePriceChanged
    • DirectMessagesTopic
    • PaymentForm
    • PaymentOption
    • SavedCredentials
    • PaymentResult
    • ChatBoost
    • ChatOwnerChanged
    • ChatOwnerLeft
    • ChatHasProtectedContentToggled
    • ChatHasProtectedContentDisableRequested
    • ContactRegistered
    • ScreenshotTaken
    • StarAmount
    • WriteAccessAllowed
    • GiftAttribute
    • StoryView
    • GiftedPremium
    • ChatBackground
    • ChatTheme
    • GiftedStars
    • GiftedTon
    • UpgradedGiftValueInfo
    • UpgradedGiftAttributeId
    • UpgradedGiftPurchaseOffer
    • UpgradedGiftPurchaseOfferRejected
    • UpgradedGiftAttributeIdModel
    • UpgradedGiftAttributeIdSymbol
    • UpgradedGiftAttributeIdBackdrop
    • UpgradedGiftAttributeRarity
    • UpgradedGiftAttributeRarityPerMille
    • UpgradedGiftAttributeRarityUncommon
    • UpgradedGiftAttributeRarityRare
    • UpgradedGiftAttributeRarityEpic
    • UpgradedGiftAttributeRarityLegendary
    • UpgradedGiftOriginalDetails
    • InputChatPhoto
    • InputChatPhotoPrevious
    • InputChatPhotoStatic
    • InputChatPhotoAnimation
    • AuctionBid
    • AuctionRound
    • AuctionState
    • AuctionStateActive
    • AuctionStateFinished
    • GiftAuctionState
    • GiftAuction
    • ReplyKeyboardMarkup
    • KeyboardButton
    • ReplyKeyboardRemove
    • InlineKeyboardMarkup
    • InlineKeyboardButton
    • LoginUrl
    • ForceReply
    • CallbackQuery
    • GameHighScore
    • CallbackGame
    • WebAppInfo
    • MenuButton
    • MenuButtonCommands
    • MenuButtonWebApp
    • MenuButtonDefault
    • SentWebAppMessage
    • KeyboardButtonRequestChat
    • KeyboardButtonRequestManagedBot
    • KeyboardButtonRequestUsers
    • KeyboardButtonPollType
    • ManagedBotUpdated
    • OrderInfo
    • PreCheckoutQuery
    • ShippingAddress
    • ShippingQuery
    • MessageReactionUpdated
    • MessageReactionCountUpdated
    • ChatBoostUpdated
    • ShippingOption
    • PurchasedPaidMedia
    • ChatShared
    • UsersShared
    • BotCommand
    • BotCommandScope
    • BotCommandScopeDefault
    • BotCommandScopeAllPrivateChats
    • BotCommandScopeAllGroupChats
    • BotCommandScopeAllChatAdministrators
    • BotCommandScopeChat
    • BotCommandScopeChatAdministrators
    • BotCommandScopeChatMember
    • InlineQuery
    • InlineQueryResult
    • InlineQueryResultCachedAudio
    • InlineQueryResultCachedDocument
    • InlineQueryResultCachedAnimation
    • InlineQueryResultCachedPhoto
    • InlineQueryResultCachedSticker
    • InlineQueryResultCachedVideo
    • InlineQueryResultCachedVoice
    • InlineQueryResultArticle
    • InlineQueryResultAudio
    • InlineQueryResultContact
    • InlineQueryResultDocument
    • InlineQueryResultAnimation
    • InlineQueryResultLocation
    • InlineQueryResultPhoto
    • InlineQueryResultVenue
    • InlineQueryResultVideo
    • InlineQueryResultVoice
    • ChosenInlineResult
    • ActiveSession
    • ActiveSessions
    • FirebaseAuthenticationSettings
    • FirebaseAuthenticationSettingsAndroid
    • FirebaseAuthenticationSettingsIos
    • PhoneNumberAuthenticationSettings
    • SentCode
    • TermsOfService
    • InputChecklist
    • InputContactMessageContent
    • InputCredentials
    • InputCredentialsApplePay
    • InputCredentialsGooglePay
    • InputCredentialsNew
    • InputCredentialsSaved
    • InputInvoice
    • InputInvoiceMessage
    • InputInvoiceMessageContent
    • InputInvoiceName
    • InputLocationMessageContent
    • InputMedia
    • InputMediaAnimation
    • InputMediaAudio
    • InputMediaDocument
    • InputMediaPhoto
    • InputMediaVideo
    • InputMediaSticker
    • InputMessageContent
    • InputPhoneContact
    • InputPollOption
    • InputPrivacyRule
    • InputPrivacyRuleAllowAll
    • InputPrivacyRuleAllowBots
    • InputPrivacyRuleAllowChats
    • InputPrivacyRuleAllowCloseFriends
    • InputPrivacyRuleAllowContacts
    • InputPrivacyRuleAllowPremium
    • InputPrivacyRuleAllowUsers
    • InputPrivacyRuleDisallowAll
    • InputPrivacyRuleDisallowBots
    • InputPrivacyRuleDisallowChats
    • InputPrivacyRuleDisallowContacts
    • InputPrivacyRuleDisallowUsers
    • InputTextMessageContent
    • InputVenueMessageContent
  • Bound Methods
    • reply_animation
    • answer_animation
    • reply_audio
    • answer_audio
    • reply_contact
    • answer_contact
    • reply_document
    • answer_document
    • reply_game
    • answer_game
    • reply_invoice
    • answer_invoice
    • reply_location
    • answer_location
    • reply_media_group
    • answer_media_group
    • reply
    • reply_text
    • answer
    • reply_photo
    • answer_photo
    • reply_poll
    • answer_poll
    • reply_dice
    • answer_dice
    • reply_sticker
    • answer_sticker
    • reply_venue
    • answer_venue
    • reply_video
    • answer_video
    • reply_video_note
    • answer_video_note
    • reply_voice
    • answer_voice
    • reply_paid_media
    • answer_paid_media
    • reply_cached_media
    • answer_cached_media
    • get_media_group
    • reply_chat_action
    • reply_inline_bot_result
    • answer_inline_bot_result
    • reply_checklist
    • answer_checklist
    • edit_text
    • edit
    • edit_caption
    • edit_media
    • edit_checklist
    • edit_reply_markup
    • edit_live_location
    • stop_live_location
    • forward
    • copy
    • copy_media_group
    • delete
    • click
    • react
    • retract_vote
    • download
    • vote
    • pin
    • unpin
    • read
    • view
    • pay
    • accept_gift_purchase_offer
    • reject_gift_purchase_offer
    • summarize
    • archive
    • unarchive
    • set_title
    • set_description
    • set_photo
    • set_ttl
    • ban_member
    • unban_member
    • restrict_member
    • promote_member
    • join
    • leave
    • export_invite_link
    • get_member
    • get_members
    • add_members
    • mark_unread
    • set_protected_content
    • unpin_all_messages
    • mute
    • unmute
    • archive
    • unarchive
    • block
    • unblock
    • get_common_chats
    • answer
    • edit_message_text
    • edit_message_caption
    • edit_message_media
    • edit_message_reply_markup
    • answer
    • answer
    • answer
    • approve
    • decline
    • reply
    • reply_text
    • reply_animation
    • reply_audio
    • reply_cached_media
    • reply_media_group
    • reply_photo
    • reply_sticker
    • reply_video
    • reply_video_note
    • reply_voice
    • copy
    • delete
    • edit_media
    • edit_caption
    • edit_privacy
    • react
    • forward
    • download
    • read
    • view
    • delete
    • edit
    • include_chat
    • exclude_chat
    • update_color
    • pin_chat
    • remove_chat
    • create_invite_link
    • reset
    • show
    • hide
    • convert
    • upgrade
    • transfer
    • wear
    • buy
    • send
    • get_auction_state
    • send_purchase_offer
    • add_to_gifs
  • Enumerations
    • BlockList
    • BusinessSchedule
    • ButtonStyle
    • ChatAction
    • ChatEventAction
    • ChatJoinType
    • ChatMemberStatus
    • ChatMembersFilter
    • ChatType
    • ClientPlatform
    • FolderColor
    • MessageEntityType
    • MessageMediaType
    • MessageOriginType
    • MessageServiceType
    • MessagesFilter
    • NextCodeType
    • PaidReactionPrivacy
    • ParseMode
    • PhoneCallDiscardReason
    • PhoneNumberCodeType
    • PollType
    • PrivacyKey
    • ProfileColor
    • ProfileTab
    • ReplyColor
    • SentCodeType
    • StoriesPrivacyRules
    • UserStatus
    • UpgradedGiftOrigin
    • GiftAttributeType
    • MediaAreaType
    • PrivacyRuleType
    • GiftForResaleOrder
    • GiftPurchaseOfferState
    • GiftType
    • PaymentFormType
    • StickerType
    • MaskPointType
    • SuggestedPostRefundReason
    • SuggestedPostState
  • Update Handlers
  • Decorators
  • RPC Errors
    • 303 - SeeOther
    • 400 - BadRequest
    • 401 - Unauthorized
    • 403 - Forbidden
    • 406 - NotAcceptable
    • 420 - Flood
    • 500 - InternalServerError
  • Update Filters

Topic Guides

  • Using Filters
  • Creating Filters
  • More on Updates
  • Client Settings
  • Decreasing chance of ban
  • Speedups
  • Text Formatting
  • Smart Plugins
  • Storage Engines
  • Object Serialization
  • Proxy Settings
  • Scheduling Tasks
  • MTProto vs. Bot API
  • Peers
  • Debugging
  • Test Servers
  • Advanced Usage
  • Voice Calls

Meta

  • Frequently Asked Questions
    • Why is the API key needed for bots?
    • How to use webhooks?
    • Using the same file_id across different accounts
    • Using multiple clients at once on the same account
    • Client started, but nothing happens
    • What are the IP addresses of Telegram Data Centers?
    • Migrating the account to another data center
    • Why is the client reacting slowly in supergroups/channels?
    • PEER_ID_INVALID error
    • Code hangs when calling stop, restart, add/remove_handler
    • UnicodeEncodeError: ‘…’ codec can’t encode …
    • Uploading with URLs gives error WEBPAGE_CURL_FAILED
    • sqlite3.OperationalError: database is locked
    • sqlite3.InterfaceError: Error binding parameter
    • socket.send(), OSError(), TimeoutError(), Connection lost/reset
    • How to avoid Flood Waits?
    • The account has been limited/deactivated/frozen
  • Support Kurigram

Telegram Raw API

  • Raw Functions
  • Raw Types
  • Raw Base

On this page

  • MessageOrigin
  1. KurimuzonAkuma's Fork /
  2. Available Types /
  3. MessageOrigin

MessageOrigin¶

class pyrogram.types.MessageOrigin¶

This object describes the origin of a message.

It can be one of:

  • MessageOriginChannel

  • MessageOriginChat

  • MessageOriginHiddenUser

  • MessageOriginImport

  • MessageOriginUser

Previous
MessageOriginUser
Next
Photo

Kurigram Copyright 2017– , Dan, KurimuzonAkuma

Released under the GNU LGPL v3.0 license

Support Kurigram