New has_text condition for asserting that specific text is contained inside the last request (#335)
Validation stage reworked.
Pipeline.validation_stage, Pipeline.verbose and Context.validation fields are removed.
Added new type for annotating labels dff.script.ConstLabel (#289)
Functions cnd.exact_match and check_happy_path now accept both Message and str.
The following are now equivalent: exact_match(Message("text")) == exact_match("text")
(#337)
CLIMessengerInterface moved to messengers.console (#328)
Attachments reworked (#328):
Session, Command, Link, Button, Keyboard and Attachments classes removed, Message.commands field removed.
Changelog
General
Features
has_text
condition for asserting that specific text is contained inside the last request (#335)Pipeline.validation_stage
,Pipeline.verbose
andContext.validation
fields are removed. Added new type for annotating labelsdff.script.ConstLabel
(#289)cnd.exact_match
andcheck_happy_path
now accept bothMessage
andstr
. The following are now equivalent:exact_match(Message("text"))
==exact_match("text")
(#337)messengers.console
(#328)Session
,Command
,Link
,Button
,Keyboard
andAttachments
classes removed,Message.commands
field removed.CallbackQuery
,Contact
,Invoice
,Poll
,Animation
,Sticker
,VoiceMessage
,VideoMessage
andMediaGroup
classes.has_callback_query
condition.title
field from Data Attachments. Usecaption
instead.Message.attachments
. Others may be accessed viaMessage.original_message
.Sticker
,Poll
, e.t.c.).disable_notification
,message_effect_id
orcaption
.Documentation
Contrib
poe quick_test
to run tests that are not slow and do not require docker (#344)Context.framework_states
renamed toContext.framework_data
and madePydantic.BaseModel
(#359)MessengerInterfaceWithAttachments
class (#328)wrap_sync_function_in_async
moved toutils.devel
(#36)Checklist