我正在尝试编辑prevoius消息的inline_keyboard按钮(在收到回调数据之后)。我尝试使用editMessageText和editMessageReplyMarkup。我尝试遵循其他代码语言的一些建议,但是我无法在PHP中做到这一点。这是我的代码:
这是欢迎消息的代码(正在运行,而不是发送消息时出现错误):
const TimeLine = ({ getPosts, posts: { loading, posts } }) => {
useEffect(() => {
getPosts();
}, []);
return loading ? (
<Spinner />
) : (
<section className='container'>
<h1 className='larget text-primary'>Time line</h1>
<p className='lead'>
<i className='fas fa-user'></i> Welecome to the community
</p>
<PostfForm />
<div className='posts'>
<Alert />
{posts.map((post) => (
<PostItem key={post._id} post={post} />
))}
</div>
</section>
);
};
TimeLine.propTypes = {
getPosts: PropTypes.func.isRequired,
posts: PropTypes.object.isRequired,
};
const mapStateToProps = (state) => ({
posts: state.posts,
});
export default connect(mapStateToProps, { getPosts })(TimeLine);
在使用此方法接收回调数据后,我正在尝试编辑上一条消息:
Dim tdf As TableDef
For Each tdf In CurrentDb.TableDefs
If Left(tdf.Name, 7) <> "backup_" Then
Dim newTableName As String
newTableName = "backup_" + tdf.Name
DoCmd.SetWarnings False
DoCmd.Rename newTableName, acTable, tdf.Name
DoCmd.SetWarnings True
End If
Next
有什么主意吗?预先谢谢你!