+
    kHàj«	  ã                   óf   € R t ^ RIHtHt ]'       d   ^ RIHt ^ RIHt R R ltR R lt	R R	 lt
R
# )uù   Telegram group addressing helpers, kept out of the adapter facade.

The identity line lives in ``channel_prompt`` and therefore in the cached-agent signature: it
must be stable for the life of a session (username only â€” never a per-message fact).
)ÚTYPE_CHECKINGÚOptional)ÚMessage)ÚTelegramAdapterc                ó,   € V ^8„  d   QhRRRRR\         /# )é   Úadapterr   Úmessager   Úreturn)Úbool)Úformats   "ÚP/home/ubuntu/.hermes/hermes-agent/plugins/platforms/telegram/telegram_context.pyÚ__annotate__r      s#   € ÷ ñ Ð):ð ÀYð ÔSWñ ó    c                ó  € V P                  4       pV P                  '       d   \        V P                  RR4      MRpV P                  V4       F´  w  rEV F©  pV P	                  V4      pVR8X  d]   V P                  WF4      ;'       g    RP                  4       P                  R4      P                  4       pV'       d   W‚8w  d     R# Ku  Kw  VR8X  g   K€  \        VRR4      p	V	f   K“  \        V	RR4      V8w  g   K§    R# 	  K¶  	  R	# )
zRTrue when a ``mention``/``text_mention`` entity names someone other than this bot.ÚidNÚmentionÚ Ú@TÚtext_mentionÚuserF)	Ú_current_bot_usernameÚ_botÚgetattrÚ_entity_sourcesÚ_entity_typeÚ_entity_spanÚstripÚlstripÚlower)
r   r	   ÚownÚbot_idÚsource_textÚentitiesÚentityÚentity_typeÚhandler   s
   &&        r   Úmentions_other_participantsr'      sâ   € à
×
'Ñ
'Ó
)€CØ29·,·,°,ŒW�W—\‘\ 4¨Ô.ÀD€FØ!(×!8Ñ!8¸Ö!AÑˆÛˆFØ!×.Ñ.¨vÓ6ˆKØ˜iÔ'Ø!×.Ñ.¨{ÓC×IÐIÀr×PÑPÓR×YÑYÐZ]Ó^×dÑdÓf�ß˜fœmÛñ ,‘6à Ö.Ü˜v v¨tÓ4�ØÔ#¬°°d¸DÓ(AÀVÖ(KÛó ñ "Bñ r   c          	      ód   € V ^8„  d   QhRRRRR\         \        ,          R\         \        ,          /# )r   r   r   r	   r   Útextr
   ©r   Ústr)r   s   "r   r   r       s5   € ÷ 1ñ 1Ð 1ð 1¸Ið 1ÌXÔVYÍ]ð 1Ô_gÔhkÕ_lñ 1r   c                óx   € V P                  V4      '       d   \        W4      '       d   V# V P                  V4      # )u¶   Strip our own handle only when we are the sole addressee. With other participants named,
``@research_bot , @ops_bot are you both listening?`` must not reach us as ``, @ops_bot â€¦``.)Ú_is_group_chatr'   Ú_clean_bot_trigger_text)r   r	   r)   s   &&&r   Úgroup_trigger_textr/       s6   € ð ×Ñ˜g×&Ò&Ô+FÀw×+XÒ+XØˆØ×*Ñ*¨4Ó0Ð0r   c          	      ód   € V ^8„  d   QhRRRRR\         \        ,          R\         \        ,          /# )r   r   r   r	   r   Úchannel_promptr
   r*   )r   s   "r   r   r   (   s:   € ÷ Mñ MØðMØ)2ðMÜDLÌSÅMðMäŒc…]ñMr   c                ó¼   € V P                  V4      '       d   \        V RR4      '       g   V# V P                  4       pV'       g   V# RV R2pV'       d   V RV 2# T# )zWSession-stable identity line so the model can read retained @mentions as itself or not.r   Nz+Your Telegram bot username in this group: @zG. Mentions of other bots are not requests for you to relay the message.z

)r-   r   r   )r   r	   r1   ÚusernameÚidentitys   &&&  r   Úgroup_identity_promptr5   (   st   € ð ×!Ñ! '×*Ò*´'¸'À6È4×2PÒ2PØÐØ×,Ñ,Ó.€HßØÐà
5°h°Zð @Pð 	Pð ÷ 1?ˆnÐ˜T ( Ð,ÐLÀHÐLr   N)Ú__doc__Útypingr   r   Útelegramr   Ú"plugins.platforms.telegram.adapterr   r'   r/   r5   © r   r   Ú<module>r;      s(   ðñ÷ +çÝ ÝBõõ$1÷Mr   